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

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 })