Skip to content

Commit 3b964c3

Browse files
committed
remove format mapping for lsp
1 parent 999a173 commit 3b964c3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lua/config/lsp.lua

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ vim.api.nvim_create_autocmd("LspAttach", {
3535
end, { desc = "list workspace folder" })
3636

3737
-- Set some key bindings conditional on server capabilities
38-
if client.server_capabilities.documentFormattingProvider and client.name ~= "lua_ls" then
39-
map({ "n", "x" }, "<space>f", vim.lsp.buf.format, { desc = "format code" })
40-
end
41-
4238
-- Disable ruff hover feature in favor of Pyright
4339
if client.name == "ruff" then
4440
client.server_capabilities.hoverProvider = false

0 commit comments

Comments
 (0)