mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
remove format mapping for lsp
This commit is contained in:
parent
999a1733cf
commit
3b964c3d1f
@ -35,10 +35,6 @@ vim.api.nvim_create_autocmd("LspAttach", {
|
||||
end, { desc = "list workspace folder" })
|
||||
|
||||
-- Set some key bindings conditional on server capabilities
|
||||
if client.server_capabilities.documentFormattingProvider and client.name ~= "lua_ls" then
|
||||
map({ "n", "x" }, "<space>f", vim.lsp.buf.format, { desc = "format code" })
|
||||
end
|
||||
|
||||
-- Disable ruff hover feature in favor of Pyright
|
||||
if client.name == "ruff" then
|
||||
client.server_capabilities.hoverProvider = false
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user