mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-12-14 03:23:50 +01:00
change maps
This commit is contained in:
parent
86b7996c1b
commit
af9b96d95b
1 changed files with 8 additions and 8 deletions
|
@ -18,11 +18,11 @@ map("n", "*p", "\"*p", { noremap = true })
|
||||||
map("n", "*d", "\"*d", { noremap = true })
|
map("n", "*d", "\"*d", { noremap = true })
|
||||||
|
|
||||||
-- symbol renaming
|
-- symbol renaming
|
||||||
map("n", "cn", "<Plug>(coc-rename)", { silent = true })
|
map("n", "-n", "<Plug>(coc-rename)", { silent = true })
|
||||||
-- apply AutoFix to problem on current line
|
-- apply AutoFix to problem on current line
|
||||||
map("n", "cf", "<Plug>(coc-fix-current)", { silent = true })
|
map("n", "-f", "<Plug>(coc-fix-current)", { silent = true })
|
||||||
-- open action dialog
|
-- open action dialog
|
||||||
map("n", "ca", ":CocAction<CR>", { silent = true })
|
map("n", "-a", ":CocAction<CR>", { silent = true })
|
||||||
|
|
||||||
-- GoTo code navigation.
|
-- GoTo code navigation.
|
||||||
map("n", "gd", "<Plug>(coc-definition)", { silent = true })
|
map("n", "gd", "<Plug>(coc-definition)", { silent = true })
|
||||||
|
@ -37,14 +37,14 @@ map("n", "K", ":call CocActionAsync(\'doHover\')<CR>", { silent = true })
|
||||||
map("n", "<space>o", ":CocList -I symbols<CR>", { silent = true })
|
map("n", "<space>o", ":CocList -I symbols<CR>", { silent = true })
|
||||||
|
|
||||||
-- format code
|
-- format code
|
||||||
map("n", "cr", ":call CocActionAsync(\'format\')<CR>", { silent = true })
|
map("n", "-r", ":call CocActionAsync(\'format\')<CR>", { silent = true })
|
||||||
|
|
||||||
-- Use <c-space> to trigger completion.
|
-- Use <c-space> to trigger completion.
|
||||||
map("i", "<c-space>", "coc#refresh()", { silent = true, expr = true })
|
map("i", "<c-space>", "coc#refresh()", { silent = true, expr = true })
|
||||||
|
|
||||||
-- Use cd to jump to next diagnostic
|
-- Use -d to jump to next diagnostic
|
||||||
map("n", "cd", "<Plug>(coc-diagnostic-next)", { silent = true })
|
map("n", "-d", "<Plug>(coc-diagnostic-next)", { silent = true })
|
||||||
|
|
||||||
-- Use co to show outline
|
-- Use -o to show outline
|
||||||
map("n", "co", ":CocList outline<CR>", { silent = true })
|
map("n", "-o", ":CocList outline<CR>", { silent = true })
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue