disabled lsp client formatting
This commit is contained in:
@@ -33,6 +33,9 @@ vim.api.nvim_create_autocmd("LspAttach", {
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
client.server_capabilities.documentFormattingProvider = false
|
||||||
|
client.server_capabilities.documentRangeFormattingProvider = false
|
||||||
|
|
||||||
local is_rust_analyzer = client.name == "rust-analyzer"
|
local is_rust_analyzer = client.name == "rust-analyzer"
|
||||||
require("plugins.lsp_keymaps").set_lsp_keymaps(ev.buf, is_rust_analyzer)
|
require("plugins.lsp_keymaps").set_lsp_keymaps(ev.buf, is_rust_analyzer)
|
||||||
end,
|
end,
|
||||||
@@ -163,5 +166,5 @@ vim.lsp.enable({
|
|||||||
"taplo",
|
"taplo",
|
||||||
"templ",
|
"templ",
|
||||||
"ts_ls",
|
"ts_ls",
|
||||||
"zls",
|
"zls",
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user