From abce2fe2e0ce615192f9ed73f6981a347d015bab Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 15 Sep 2022 10:09:10 +0200 Subject: Added nvim pylsp default flake8 configuration --- config/nvim/lua/plugins.lua | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'config/nvim') diff --git a/config/nvim/lua/plugins.lua b/config/nvim/lua/plugins.lua index 6eae912..e454139 100644 --- a/config/nvim/lua/plugins.lua +++ b/config/nvim/lua/plugins.lua @@ -111,7 +111,20 @@ return require("packer").startup(function() -- lspconfig.clangd.setup { on_attach = on_attach } -- lspconfig.rust_analyzer.setup { on_attach = on_attach } -- need python-lsp-server and pyls-flake8 - lspconfig.pylsp.setup { on_attach = on_attach, capabilities = capabilities } + lspconfig.pylsp.setup { + on_attach = on_attach, + capabilities = capabilities, + settings = { + pylsp = { + plugins = { + flake8 = { + ignore = {'E501', 'E221', 'W503', 'E241'}, + maxLineLength = 100, + }, + }, + }, + }, + } -- brew install haskell-language-server lspconfig.hls.setup {} -- cgit