diff options
| author | Charles Cabergs <charles.cabergs@colruytgroup.com> | 2022-09-15 10:09:10 +0200 |
|---|---|---|
| committer | Charles Cabergs <charles.cabergs@colruytgroup.com> | 2022-09-15 10:09:10 +0200 |
| commit | abce2fe2e0ce615192f9ed73f6981a347d015bab (patch) | |
| tree | bd506f3bd161fa0a7c948edab474b1fb39b5ccfa /config | |
| parent | 3faca14937f5b180641b02763a5ef37f56424588 (diff) | |
| download | dotfiles-abce2fe2e0ce615192f9ed73f6981a347d015bab.tar.gz dotfiles-abce2fe2e0ce615192f9ed73f6981a347d015bab.tar.bz2 dotfiles-abce2fe2e0ce615192f9ed73f6981a347d015bab.zip | |
Added nvim pylsp default flake8 configuration
Diffstat (limited to 'config')
| -rw-r--r-- | config/nvim/lua/plugins.lua | 15 |
1 files changed, 14 insertions, 1 deletions
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 {} |
