🐛 fix(nvim): check if cinnamon plugin is loaded before overwriting movement keys
This commit is contained in:
parent
21de798f62
commit
0006a7d21c
1 changed files with 66 additions and 64 deletions
|
@ -59,6 +59,7 @@ map("x", "g/", "<esc>/\\%V", { silent = false, desc = "Search inside visual sele
|
|||
map("x", "*", [[y/\V<C-R>=escape(@", '/\')<CR><CR>]])
|
||||
map("x", "#", [[y?\V<C-R>=escape(@", '?\')<CR><CR>]])
|
||||
|
||||
if package.loaded["cinnamon"] then
|
||||
-- DEFAULT_KEYMAPS:
|
||||
|
||||
-- Half-window movements:
|
||||
|
@ -139,3 +140,4 @@ map("n", "gd", "<Cmd>lua Scroll('definition')<CR>")
|
|||
|
||||
-- LSP go-to-declaration:
|
||||
map("n", "gD", "<Cmd>lua Scroll('declaration')<CR>")
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue