From 2003b8ec76a6c9352e7512985c6326fc31a2583e Mon Sep 17 00:00:00 2001 From: Igor Date: Sun, 25 Dec 2022 14:06:14 -0300 Subject: [PATCH 1/2] update neovim config --- README.md | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/README.md b/README.md index 0f47657..5388943 100644 --- a/README.md +++ b/README.md @@ -75,21 +75,6 @@ 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 require('lspconfig').ruff_lsp.setup { on_attach = on_attach, } From 59072fb3d0246bbbfbd4caa9e6840b2e191a6129 Mon Sep 17 00:00:00 2001 From: Igor Date: Sun, 25 Dec 2022 14:26:54 -0300 Subject: [PATCH 2/2] link to nvim-lspconfig's repo --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 5388943..80cc2b4 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,8 @@ local on_attach = function(client, bufnr) end -- Configure `ruff-lsp`. +-- 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, }