Add ruff lsp server to nvim
This commit is contained in:
parent
e8c79d69e1
commit
0bae1471b2
2 changed files with 7 additions and 0 deletions
6
dotfiles/.config/nvim/after/lsp/ruff.lua
Normal file
6
dotfiles/.config/nvim/after/lsp/ruff.lua
Normal 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" }),
|
||||||
|
}
|
||||||
|
|
@ -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",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue