Skip to content

Commit

Permalink
Update neovim config (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
igorlfs authored Dec 25, 2022
1 parent efad545 commit 0484171
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,21 +75,8 @@ local on_attach = function(client, bufnr)
end

-- Configure `ruff-lsp`.
local configs = require 'lspconfig.configs'
if not configs.ruff_lsp then
configs.ruff_lsp = {
default_config = {
cmd = { 'ruff-lsp' },
filetypes = { 'python' },
root_dir = require('lspconfig').util.find_git_ancestor,
init_options = {
settings = {
args = {}
}
}
}
}
end
-- See: https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#ruff_lsp
-- For the default config, along with instructions on how to customize the settings
require('lspconfig').ruff_lsp.setup {
on_attach = on_attach,
}
Expand Down

0 comments on commit 0484171

Please sign in to comment.