switched from Mason + mason-lspconfig to custom install
This commit is contained in:
18
lua/lsp/python.lua
Normal file
18
lua/lsp/python.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
---@type vim.lsp.Config
|
||||
local config = {
|
||||
cmd = { 'pylsp' },
|
||||
filetypes = { 'python' },
|
||||
root_markers = {
|
||||
'pyproject.toml',
|
||||
'setup.py',
|
||||
'setup.cfg',
|
||||
'requirements.txt',
|
||||
'Pipfile',
|
||||
'.git',
|
||||
},
|
||||
}
|
||||
|
||||
vim.lsp.config['python-language-server'] = config
|
||||
vim.lsp.enable('python-language-server')
|
||||
|
||||
Reference in New Issue
Block a user