Add pylsp to neovim

This commit is contained in:
Victor Timofei 2023-06-09 13:22:46 +03:00
parent f2689ec4f2
commit 17d95033f2
Signed by: vtimofei
GPG Key ID: B790DCEBE281403A
2 changed files with 18 additions and 0 deletions

View File

@ -3,3 +3,4 @@ require('vtimofei.lsp.rust_analyzer')
require('vtimofei.lsp.lua_ls')
require('vtimofei.lsp.tsserver')
require('vtimofei.lsp.clangd')
require('vtimofei.lsp.pylsp')

View File

@ -0,0 +1,17 @@
local capabilities = require('cmp_nvim_lsp').default_capabilities()
local remap = require('vtimofei.lsp.remap')
local lsp_conf = require('lspconfig')
lsp_conf.pylsp.setup{
capabilities = capabilities,
on_attach = function()
remap.hover()
remap.definition()
remap.type_definition()
remap.implementation()
remap.diagnostics_next()
remap.diagnostics_prev()
remap.rename()
remap.code_action()
end
}