change signiture documentation keybind
This commit is contained in:
parent
fef187e092
commit
b92b25161e
14
init.lua
14
init.lua
|
@ -262,6 +262,16 @@ vim.keymap.set({ 'n', 'v' }, '<Space>', '<Nop>', { silent = true })
|
|||
vim.keymap.set('n', 'k', "v:count == 0 ? 'gk' : 'k'", { expr = true, silent = true })
|
||||
vim.keymap.set('n', 'j', "v:count == 0 ? 'gj' : 'j'", { expr = true, silent = true})
|
||||
|
||||
-- Window Keymap rebind
|
||||
vim.keymap.set('n', "<C-h>", "<C-w>h", {desc = "Move left window"})
|
||||
vim.keymap.set('n', "<C-l>", "<C-w>l", {desc = "Move right window"})
|
||||
vim.keymap.set('n', "<C-j>", "<C-w>j", {desc = "Move down window"})
|
||||
vim.keymap.set('n', "<C-k>", "<C-w>k", {desc = "Move up window"})
|
||||
vim.keymap.set("n", "<C-Up>", ":resize -2<CR>", {desc = "resize vertical up"})
|
||||
vim.keymap.set("n", "<C-Down>", ":resize +2<CR>", {desc = "resize vertical down"})
|
||||
vim.keymap.set("n", "<C-Left>", ":vertical resize -2<CR>", {desc = "resize horizontal right"})
|
||||
vim.keymap.set("n", "<C-Right>", ":vertical resize +2<CR>", {desc = "resize horizontal left"})
|
||||
|
||||
-- [[ Highlight on yank ]]
|
||||
-- See `:help vim.highlight.on_yank()`
|
||||
local highlight_group = vim.api.nvim_create_augroup('YankHighlight', { clear = true })
|
||||
|
@ -419,7 +429,7 @@ wk.register({
|
|||
|
||||
-- See `:help K` for why this keymap
|
||||
nmap('K', vim.lsp.buf.hover, 'Hover Documentation')
|
||||
nmap('<C-k>', vim.lsp.buf.signature_help, 'Signature Documentation')
|
||||
nmap('<leader>k', vim.lsp.buf.signature_help, 'Signature Documentation')
|
||||
|
||||
-- Lesser used LSP functionality
|
||||
nmap('gD', vim.lsp.buf.declaration, '[G]oto [D]eclaration')
|
||||
|
@ -443,7 +453,7 @@ end
|
|||
local servers = {
|
||||
-- clangd = {},
|
||||
-- gopls = {},
|
||||
-- pyright = {},
|
||||
pyright = {},
|
||||
-- rust_analyzer = {},
|
||||
-- tsserver = {},
|
||||
|
||||
|
|
Loading…
Reference in New Issue