rm un-needed mappings
This commit is contained in:
parent
cef2899bba
commit
ed68c4b07d
5 changed files with 3 additions and 18 deletions
|
@ -129,8 +129,6 @@ nvchad.no_WhichKey_map = function()
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
require("plugins.configs.others").misc_mappings()
|
||||
end
|
||||
|
||||
-- load plugin after entering vim ui
|
||||
|
|
|
@ -14,7 +14,7 @@ local _default_opts = win.default_opts
|
|||
|
||||
win.default_opts = function(options)
|
||||
local opts = _default_opts(options)
|
||||
opts.border = "double"
|
||||
opts.border = "single"
|
||||
return opts
|
||||
end
|
||||
|
||||
|
|
|
@ -211,16 +211,4 @@ M.gitsigns = function()
|
|||
}
|
||||
end
|
||||
|
||||
M.misc_mappings = function()
|
||||
local map = nvchad.map
|
||||
|
||||
-- Allow moving the cursor through wrapped lines with j, k, <Up> and <Down>
|
||||
-- http://www.reddit.com/r/vim/comments/2k4cbr/problem_with_gj_and_gk/
|
||||
-- empty mode is same as using :map
|
||||
-- also don't use g[j|k] when in operator pending mode, so it doesn't alter d, y or c behaviour
|
||||
map("", "j", 'v:count || mode(1)[0:1] == "no" ? "j" : "gj"', { expr = true })
|
||||
map("", "k", 'v:count || mode(1)[0:1] == "no" ? "k" : "gk"', { expr = true })
|
||||
map("", "<Down>", 'v:count || mode(1)[0:1] == "no" ? "j" : "gj"', { expr = true })
|
||||
map("", "<Up>", 'v:count || mode(1)[0:1] == "no" ? "k" : "gk"', { expr = true })
|
||||
end
|
||||
return M
|
||||
|
|
|
@ -55,10 +55,9 @@ local options = {
|
|||
},
|
||||
}
|
||||
|
||||
require("plugins.configs.others").misc_mappings()
|
||||
|
||||
local mappings = nvchad.load_config().mappings
|
||||
local mapping_groups = { groups = vim.deepcopy(mappings.groups) }
|
||||
|
||||
mappings.disabled = nil
|
||||
mappings.groups = nil
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ end
|
|||
local options = {
|
||||
display = {
|
||||
open_fn = function()
|
||||
return require("packer.util").float { border = "double" }
|
||||
return require("packer.util").float { border = "single" }
|
||||
end,
|
||||
},
|
||||
git = {
|
||||
|
|
Loading…
Reference in a new issue