Disable formatting on nlua LSP
parent
f93ca4896e
commit
2387cdd3b7
|
@ -67,11 +67,15 @@ for _, lsp in ipairs(servers) do
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Lua bultin lsp
|
-- 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(
|
require("nlua.lsp.nvim").setup(
|
||||||
lspconfig,
|
lspconfig,
|
||||||
vim.tbl_extend("force", common_config, {
|
vim.tbl_extend("force", common_config, {
|
||||||
-- Tell LSP which globals should be considered real
|
-- Tell LSP which globals should be considered real
|
||||||
globals = {},
|
globals = {},
|
||||||
|
capabilities = nlua_capabilities,
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue