diff --git a/lua/core/mappings.lua b/lua/core/mappings.lua index a71a936..be3e3e1 100644 --- a/lua/core/mappings.lua +++ b/lua/core/mappings.lua @@ -23,13 +23,6 @@ M.general = { }, } -M.bufferline = { - plugin = true, - n = { - ["" ] = {" :BufferLineCycleNext "} - } -} - M.nvimtree = { plugin = true, @@ -283,6 +276,18 @@ M.lspconfig = { }, } +M.rust = { + plugin = true, + n = { + ["rr"] = { " RustRun ", "RustRun"}, + ["rR"] = { " RustRunnables ", "RustRunnables"}, + ["rd"] = { " RustDebuggables ", "RustDebuggables"}, + ["rha"] = { " RustHoverActions ", "RustHoverActions"}, + ["roc"] = { " RustOpenCargo ", "RustOpenCargo"}, + ["rcg"] = { " RustViewCrateGraph ", "RustViewCrateGraph"}, + }, +} + M.blankline = { plugin = true, diff --git a/lua/core/options.lua b/lua/core/options.lua index a4dfb1e..8593b11 100644 --- a/lua/core/options.lua +++ b/lua/core/options.lua @@ -13,6 +13,11 @@ opt.title = true opt.cmdheight = 1 opt.clipboard = "unnamedplus" opt.cul = true -- cursor line +opt.mouse = opt.mouse + "nv" -- mouse scrolling +opt.ignorecase = true +opt.smartcase = true +opt.showmode = false +opt.incsearch = true -- numbers opt.number = true diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 0fee571..3a6b5d0 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -66,6 +66,7 @@ local plugins = { after = "nvim-lspconfig", config = function () require("plugins.configs.rust-tools") + require("core.utils").load_mappings "rust" require("core.utils").load_mappings "lspconfig" end, },