mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 03:14:55 +02:00
nvim: lsp: add support for lsp functionalites.
This commit is contained in:
parent
313dcd0720
commit
8c0feb8acc
2 changed files with 32 additions and 4 deletions
|
|
@ -29,4 +29,12 @@ function M.signature_help_on_hover(bufnr)
|
|||
})
|
||||
end
|
||||
|
||||
function M.codelens(augroup, bufnr)
|
||||
vim.api.nvim_create_autocmd({ "BufEnter", "CursorHold", "InsertLeave" }, {
|
||||
group = augroup,
|
||||
buffer = bufnr,
|
||||
callback = vim.lsp.codelens.refresh,
|
||||
})
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue