Added python lsp

This commit is contained in:
Andre Herniques 2023-05-15 13:58:58 +01:00
parent a4164204a7
commit 2ce3307007
3 changed files with 19 additions and 1 deletions

View File

@ -2,7 +2,11 @@ local O = {}
local lspConfig = require('lspconfig')
function O.setup(on_attach, lsp_flags, capabilities)
lspConfig.prismals.setup{}
lspConfig.prismals.setup{
on_attach = on_attach,
flags = lsp_flags,
capabilities = capabilities,
}
end
return O

View File

@ -0,0 +1,13 @@
local O = {}
local lspConfig = require('lspconfig')
function O.setup(on_attach, lsp_flags, capabilities)
lspConfig.pylsp.setup{
on_attach = on_attach,
flags = lsp_flags,
capabilities = capabilities,
}
end
return O

View File

@ -283,4 +283,5 @@ require 'andr3.langs.ts'.setup(on_attach, lsp_flags, capabilities)
require 'andr3.langs.prisma'.setup(on_attach, lsp_flags, capabilities)
require 'andr3.langs.svelte'.setup(on_attach, lsp_flags, capabilities)
require 'andr3.langs.ccls'.setup(on_attach, lsp_flags, capabilities)
require 'andr3.langs.python'.setup(on_attach, lsp_flags, capabilities)