diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-12-01 21:10:16 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-12-01 21:10:16 +0100 |
| commit | 8ddbd88a633894f7cb411e6c16bac232ce30b179 (patch) | |
| tree | 468988f91fef40d8d6659c1d7daa7fc3ebc17945 /config/nvim | |
| parent | 76d9b52f8eef8bc389ae47a1a47ff5f2f1f8375f (diff) | |
| download | dotfiles-8ddbd88a633894f7cb411e6c16bac232ce30b179.tar.gz dotfiles-8ddbd88a633894f7cb411e6c16bac232ce30b179.tar.bz2 dotfiles-8ddbd88a633894f7cb411e6c16bac232ce30b179.zip | |
Added python lsp for neovim (with flake8 integration)
Diffstat (limited to 'config/nvim')
| -rw-r--r-- | config/nvim/lua/plugins.lua | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/config/nvim/lua/plugins.lua b/config/nvim/lua/plugins.lua index 652c1c6..6b57eee 100644 --- a/config/nvim/lua/plugins.lua +++ b/config/nvim/lua/plugins.lua @@ -11,9 +11,14 @@ return require('packer').startup(function() -- nvim lsp configuration use { 'neovim/nvim-lspconfig', + ft = {'rust', 'python', 'c', 'cpp'}, config = function() - require('lspconfig').clangd.setup {} - end + local lspconfig = require('lspconfig') + lspconfig.clangd.setup {} + -- need python-lsp-server and pyls-flake8 + lspconfig.pylsp.setup {} + end, + run = 'pip3 install python-lsp-server pyls-flake8', } -- rust lsp (needs rust-analyser) |
