chore(flake): update inputs
Includes update to neovim 0.8 which required some configuration changes.
This commit is contained in:
parent
2f7c1124ce
commit
28545a12df
4 changed files with 19 additions and 27 deletions
|
@ -9,7 +9,7 @@ require("nvim-lightbulb").setup({
|
|||
local format_augroup = vim.api.nvim_create_augroup("LspFormatting", {})
|
||||
local on_attach = function(client, bufnr)
|
||||
-- codelens
|
||||
if client.resolved_capabilities.code_lens then
|
||||
if client.server_capabilities.codeLensProvider then
|
||||
vim.api.nvim_create_autocmd({ "CursorHold", "CursorHoldI", "InsertLeave" }, {
|
||||
callback = vim.lsp.codelens.refresh,
|
||||
buffer = bufnr,
|
||||
|
@ -63,8 +63,8 @@ local c = {
|
|||
},
|
||||
no_formatting = {
|
||||
on_attach = function(client, bufnr)
|
||||
client.resolved_capabilities.document_formatting = false
|
||||
client.resolved_capabilities.document_range_formatting = false
|
||||
client.server_capabilities.documentFormattingProvider = false
|
||||
client.server_capabilities.documentRangeFormattingProvider = false
|
||||
on_attach(client, bufnr)
|
||||
end,
|
||||
capabilities = capabilities_no_formatting,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue