disabled lsp client formatting

This commit is contained in:
Long Nguyen
2025-06-26 15:25:45 -05:00
parent ef195cc6d9
commit d8c81ad509
+4 -1
View File
@@ -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",
}) })