From f3a51a73bdf3cf0fc7d8f66c8269ccae5bdab5e1 Mon Sep 17 00:00:00 2001 From: Maciej Lebiest Date: Sat, 27 Jul 2024 17:55:59 +0200 Subject: [PATCH] change python formatter to black --- lua/plugins/nvim-lspconfig.lua | 35 ++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/lua/plugins/nvim-lspconfig.lua b/lua/plugins/nvim-lspconfig.lua index 775a296..4872d6e 100644 --- a/lua/plugins/nvim-lspconfig.lua +++ b/lua/plugins/nvim-lspconfig.lua @@ -61,6 +61,9 @@ return { eager = true, }, + black = { + enabled = true + }, jedi_hover = { enabled = true }, jedi_references = { enabled = true }, jedi_signature_help = { enabled = true }, @@ -80,12 +83,12 @@ return { } }, yapf = { - enabled = true + enabled = false }, autopep8 = { enabled = false }, - pyflakes = { enabled = true }, -- ruff_lsp + pyflakes = { enabled = true }, -- ruff_lsp pycodestyle = { enabled = false }, -- ruff_lsp pydocstyle = { enabled = true, @@ -104,8 +107,8 @@ return { } } --require 'lspconfig'.ruff_lsp.setup { - --on_attach = on_attach, - --capabilities = capabilities, + --on_attach = on_attach, + --capabilities = capabilities, --} require 'lspconfig'.pyright.setup { on_attach = on_attach, @@ -135,22 +138,22 @@ return { on_attach = on_attach, capabilities = capabilities, } - require'lspconfig'.perlpls.setup{ + require 'lspconfig'.perlpls.setup { on_attach = on_attach, capabilities = capabilities, } --require 'lspconfig'.perlnavigator.setup { - --settings = { - --perlnavigator = { - --perlPath = 'perl', - --enableWarnings = true, - --perltidyProfile = '', - --perlcriticProfile = '', - --perlcriticEnabled = true, - --} - --}, - --on_attach = on_attach, - --capabilities = capabilities, + --settings = { + --perlnavigator = { + --perlPath = 'perl', + --enableWarnings = true, + --perltidyProfile = '', + --perlcriticProfile = '', + --perlcriticEnabled = true, + --} + --}, + --on_attach = on_attach, + --capabilities = capabilities, --} require 'lspconfig'.cssls.setup {