2024-03-19 16:40:07 -04:00
|
|
|
local lsp = require("lsp.functions")
|
|
|
|
|
|
|
|
|
|
return {
|
2024-04-16 14:38:07 -04:00
|
|
|
["textDocument/codeLens"] = {
|
|
|
|
|
event = { "BufEnter", "InsertLeave" },
|
|
|
|
|
opts = {
|
|
|
|
|
group = vim.api.nvim_create_augroup("LspCodelens", {}),
|
|
|
|
|
callback = lsp.refresh_codelens,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
["textDocument/formatting"] = {
|
|
|
|
|
event = "BufWritePost",
|
|
|
|
|
opts = {
|
|
|
|
|
group = vim.api.nvim_create_augroup("LspFormatting", {}),
|
|
|
|
|
callback = lsp.format,
|
|
|
|
|
},
|
|
|
|
|
},
|
2024-03-19 16:40:07 -04:00
|
|
|
}
|