Disable formatting on nlua LSP

main
Ensar Sarajčić 2022-10-21 08:12:42 +02:00
parent f93ca4896e
commit 2387cdd3b7
1 changed files with 4 additions and 0 deletions

View File

@ -67,11 +67,15 @@ for _, lsp in ipairs(servers) do
end
-- Lua bultin lsp
local nlua_capabilities = vim.deepcopy(common_config.capabilities)
nlua_capabilities.textDocument.formatting = false
nlua_capabilities.textDocument.rangeFormatting = false
require("nlua.lsp.nvim").setup(
lspconfig,
vim.tbl_extend("force", common_config, {
-- Tell LSP which globals should be considered real
globals = {},
capabilities = nlua_capabilities,
})
)