mirror of
https://github.com/boxpositron/absolute-vim.git
synced 2026-02-28 11:40:36 +00:00
chore(lsp-config.lua): update configuration for pylsp and emmet_ls
feat(lsp-config.lua): enable rope_autoimport, flake8, pyflakes, and pycodestyle plugins for pylsp refactor(lsp-config.lua): comment out jedi_language_server configuration
This commit is contained in:
@@ -113,25 +113,38 @@ lspconfig["emmet_ls"].setup({
|
||||
on_attach = on_attach,
|
||||
filetypes = { "html", "typescriptreact", "javascriptreact", "css", "sass", "scss", "less", "svelte", "vue" },
|
||||
})
|
||||
|
||||
-- configure python lsp
|
||||
lspconfig["pylsp"].setup({
|
||||
filetypes = { "python" },
|
||||
capabilities = capabilities,
|
||||
on_attach = on_attach,
|
||||
pylsp = {
|
||||
pylsp = {
|
||||
plugins = {
|
||||
rope_autoimport = {
|
||||
enabled = true,
|
||||
completions = { enabled = true },
|
||||
},
|
||||
flake8 = { enabled = true },
|
||||
jedi_completion = {
|
||||
include_params = true,
|
||||
},
|
||||
pyflakes = { enabled = true },
|
||||
pycodestyle = {
|
||||
enabled = true,
|
||||
ignore = { "E231" },
|
||||
maxLineLength = 150,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
-- configure jedi language server
|
||||
lspconfig["jedi_language_server"].setup({
|
||||
capabilities = capabilities,
|
||||
on_attach = on_attach,
|
||||
})
|
||||
--
|
||||
-- -- configure jedi language server
|
||||
-- lspconfig["jedi_language_server"].setup({
|
||||
-- capabilities = capabilities,
|
||||
-- on_attach = on_attach,
|
||||
-- })
|
||||
|
||||
-- configure docker server
|
||||
lspconfig["dockerls"].setup({
|
||||
|
||||
Reference in New Issue
Block a user