mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-09-27 20:48:53 +02:00
config fixes
This commit is contained in:
parent
ddf033ee92
commit
d46576ce11
1 changed files with 14 additions and 14 deletions
|
@ -1,12 +1,12 @@
|
|||
local map = vim.api.nvim_set_keymap
|
||||
|
||||
-- Getting stuck in ~~vim~~ terminal
|
||||
map("t", "<Esc>", "<C-\\><C-n>", { noremap = true })
|
||||
map("n", "fzf", ":FZF<CR>", { silent = true, noremap = true })
|
||||
map("t", "<Esc>", "<C-\\><C-n>", {})
|
||||
map("n", "fzf", ":FZF<CR>", { silent = true })
|
||||
|
||||
-- Quick cursor movement
|
||||
map("n", "<C-Down>", "5k", { noremap = true })
|
||||
map("n", "<C-Up>", "5j", { noremap = true })
|
||||
map("n", "<C-Down>", "5j", { noremap = true })
|
||||
map("n", "<C-Up>", "5k", { noremap = true })
|
||||
|
||||
-- Quick pasting/yoinking to system register
|
||||
map("n", "+y", "\"+y", { noremap = true })
|
||||
|
@ -18,24 +18,24 @@ map("n", "*p", "\"*p", { noremap = true })
|
|||
map("n", "*d", "\"*d", { noremap = true })
|
||||
|
||||
-- symbol renaming
|
||||
map("n", "cn", "<Plug>(coc-rename)", { silent = true, noremap = true })
|
||||
map("n", "cn", "<Plug>(coc-rename)", { silent = true })
|
||||
-- apply AutoFix to problem on current line
|
||||
map("n", "cf", "<Plug>(coc-fix-current)", { silent = true, noremap = true })
|
||||
map("n", "cf", "<Plug>(coc-fix-current)", { silent = true })
|
||||
-- open action dialog
|
||||
map("n", "ca", ":CocAction<CR>", { silent = true, noremap = true })
|
||||
map("n", "ca", ":CocAction<CR>", { silent = true })
|
||||
|
||||
-- GoTo code navigation.
|
||||
map("n", "gd", "<Plug>(coc-definition)", { silent = true, noremap = true })
|
||||
map("n", "gy", "<Plug>(coc-type-definition)", { silent = true, noremap = true })
|
||||
map("n", "gi", "<Plug>(coc-implementation)", { silent = true, noremap = true })
|
||||
map("n", "gr", "<Plug>(coc-references)", { silent = true, noremap = true })
|
||||
map("n", "gd", "<Plug>(coc-definition)", { silent = true })
|
||||
map("n", "gy", "<Plug>(coc-type-definition)", { silent = true })
|
||||
map("n", "gi", "<Plug>(coc-implementation)", { silent = true })
|
||||
map("n", "gr", "<Plug>(coc-references)", { silent = true })
|
||||
|
||||
-- Use K to show documentation in preview window.
|
||||
map("n", "K", ":call CocActionAsync(\'doHover\')<CR>", { silent = true, noremap = true })
|
||||
map("n", "K", ":call CocActionAsync(\'doHover\')<CR>", { silent = true })
|
||||
|
||||
-- use space o to show symbols
|
||||
map("n", "<space>o", ":CocList -I symbols<CR>", { silent = true, noremap = true })
|
||||
map("n", "<space>o", ":CocList -I symbols<CR>", { silent = true })
|
||||
|
||||
-- format code
|
||||
map("n", "cr", ":call CocActionAsync(\'format\')<CR>", { silent = true, noremap = true })
|
||||
map("n", "cr", ":call CocActionAsync(\'format\')<CR>", { silent = true })
|
||||
|
||||
|
|
Loading…
Reference in a new issue