From ca8f9cb4db4181b668e9f23d0327aa95c59be099 Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Wed, 20 Mar 2024 21:03:47 -0500 Subject: [PATCH] chg: Defined the LspHover in lua as well --- laptop/keymaps.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laptop/keymaps.lua b/laptop/keymaps.lua index b1eba34..e871429 100644 --- a/laptop/keymaps.lua +++ b/laptop/keymaps.lua @@ -5,7 +5,7 @@ vim.g.mapleader = ',' vim.g.maplocalleader = ';' -- Set K to hover -vim.cmd[[command -nargs=+ LspHover lua vim.lsp.buf.hover()]] +vim.api.nvim_buf_create_user_command(0, "LspHover", "lua vim.lsp.buf.hover()", {nargs = '+' }) vim.opt.keywordprg = ":LspHover" -- Use ctrl-[hjkl] to select the active split!