chg: Make LspHover work in all buffers

This commit is contained in:
Sayantan Santra 2024-04-02 22:46:12 -05:00
parent d00bd92d4a
commit 8524170e28
Signed by: SinTan1729
GPG Key ID: EB3E68BFBA25C85F
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ g.mapleader = ','
g.maplocalleader = ';'
-- 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"
map('n', '<leader>a', vim.lsp.buf.code_action, { remap = false })