Add ruff lsp server to nvim

This commit is contained in:
Vladan Popovic 2025-12-19 14:49:31 +01:00
parent e8c79d69e1
commit 0bae1471b2
2 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1,6 @@
-- ~/.config/nvim/after/lsp/ruff.lua
return {
cmd = { "ruff", "server" },
filetypes = { "python" },
root_dir = vim.fs.root(0, { ".git/", "pyproject.toml" }),
}

View file

@ -67,6 +67,7 @@ end
local capabilities = vim.lsp.protocol.make_client_capabilities() local capabilities = vim.lsp.protocol.make_client_capabilities()
vim.lsp.enable('ty') vim.lsp.enable('ty')
vim.lsp.enable('ruff')
local servers = { local servers = {
"clangd", "clangd",