diff --git a/lua/lsp/config.lua b/lua/lsp/config.lua index c3dbfdc..53d2977 100644 --- a/lua/lsp/config.lua +++ b/lua/lsp/config.lua @@ -20,7 +20,7 @@ M.on_attach = require "lsp.attach" M.lsp_flags = require "lsp.flags" M.capabilities = require("cmp_nvim_lsp").default_capabilities() -local servers = { "pyright", "nil_ls", "lua_ls", "fortls", "yamlls", "vimls", "bashls" } +local servers = { "pyright", "ruff_lsp", "nil_ls", "lua_ls", "fortls", "yamlls", "vimls", "bashls" } for _, name in ipairs(servers) do require("lspconfig")[name].setup { on_attach = M.on_attach, diff --git a/lua/lsp/formatting.lua b/lua/lsp/formatting.lua index 796a682..4c70408 100644 --- a/lua/lsp/formatting.lua +++ b/lua/lsp/formatting.lua @@ -3,9 +3,6 @@ local lsp_formatting = function(bufnr) bufnr = bufnr, timeout_ms = 2000, async = true, - filter = function(client) - return client.name ~= "jedi_language_server" and client.name ~= "lua_ls" - end, } end return lsp_formatting diff --git a/lua/lsp/null_ls_sources.lua b/lua/lsp/null_ls_sources.lua index a3a5fbf..fd8cebe 100644 --- a/lua/lsp/null_ls_sources.lua +++ b/lua/lsp/null_ls_sources.lua @@ -1,13 +1,8 @@ local null_ls = require "null-ls" return { null_ls.builtins.code_actions.gitsigns, - null_ls.builtins.diagnostics.zsh, - null_ls.builtins.diagnostics.mypy, - null_ls.builtins.diagnostics.ruff, null_ls.builtins.formatting.black, null_ls.builtins.formatting.isort, - null_ls.builtins.formatting.stylua, null_ls.builtins.formatting.prettier, null_ls.builtins.formatting.trim_whitespace, - null_ls.builtins.hover.dictionary, }