chg: Make LspHover work in all buffers
This commit is contained in:
parent
d00bd92d4a
commit
8524170e28
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ g.mapleader = ','
|
||||||
g.maplocalleader = ';'
|
g.maplocalleader = ';'
|
||||||
|
|
||||||
-- Set K to hover and ,a to show code actions
|
-- Set K to hover and ,a to show code actions
|
||||||
api.nvim_buf_create_user_command(0, "LspHover", "lua vim.lsp.buf.hover()", { nargs = '+' })
|
api.nvim_create_user_command("LspHover", "lua vim.lsp.buf.hover()", { nargs = '+' })
|
||||||
opt.keywordprg = ":LspHover"
|
opt.keywordprg = ":LspHover"
|
||||||
map('n', '<leader>a', vim.lsp.buf.code_action, { remap = false })
|
map('n', '<leader>a', vim.lsp.buf.code_action, { remap = false })
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue