refactor: LazyVim.lsp.on_attach

This commit is contained in:
Folke Lemaitre 2024-06-08 08:11:28 +02:00
parent 6098a36d92
commit 8f7ee56dab
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
6 changed files with 32 additions and 42 deletions

View file

@ -60,10 +60,8 @@ return {
-- Neovim < 0.10 does not have dynamic registration for formatting
if vim.fn.has("nvim-0.10") == 0 then
LazyVim.lsp.on_attach(function(client, _)
if client.name == "yamlls" then
client.server_capabilities.documentFormattingProvider = true
end
end)
client.server_capabilities.documentFormattingProvider = true
end, "yamlls")
end
end,
},