nvim: Drop Python LSP

All Python LSP servers are garbage. Jedi was being horribly slow.
We only care about Python for GStreamer/GObject work where Python
GObject's missing type annotations prevent us from using something
like Pyright or similar. Just drop all this crap. Fuck Python!.
This commit is contained in:
Sanchayan Maity 2023-09-15 11:41:44 +05:30
parent 39c8f2890a
commit bac3f8b577
Signed by: sanchayanmaity
GPG Key ID: 6F6A0609C12038F3
2 changed files with 0 additions and 31 deletions

View File

@ -1,8 +1,3 @@
local lsp_utils = require('lsp-utils')
local jedi_config = lsp_utils.jedi_config()
vim.lsp.start(jedi_config)
vim.bo.textwidth = 0
vim.bo.formatprg = "black -q -"

View File

@ -179,32 +179,6 @@ function M.hls_config()
}
end
function M.jedi_config()
local root_files = { 'pyproject.toml', 'setup.py', 'setup.cfg', 'requirements.txt', 'Pipfile' }
local root_directory = get_root_directory(root_files)
return {
name = "jedi-language-server",
cmd = { "jedi-language-server" },
capabilities = default_capabilities,
filetypes = { 'python' },
root_dir = root_directory,
init_options = {
completion = {
resolveEagerly = true,
},
jediSettings = {
caseInsensitiveCompletion = false,
},
workspace = {
symbols = {
maxSymbols = 50
},
},
},
}
end
function M.pursls_config()
local root_files = { 'bower.json', 'psc-package.json', 'spago.dhall' }
local root_directory = get_root_directory(root_files)