chg: Defined the LspHover in lua as well

This commit is contained in:
Sayantan Santra 2024-03-20 21:03:47 -05:00
parent 45c537c675
commit ca8f9cb4db
Signed by: SinTan1729
GPG key ID: EB3E68BFBA25C85F

View file

@ -5,7 +5,7 @@ vim.g.mapleader = ','
vim.g.maplocalleader = ';' vim.g.maplocalleader = ';'
-- Set K to hover -- 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" vim.opt.keywordprg = ":LspHover"
-- Use ctrl-[hjkl] to select the active split! -- Use ctrl-[hjkl] to select the active split!