commit
dbc3f3d74c
|
|
@ -154,23 +154,7 @@ return {
|
||||||
local capabilities = require('blink.cmp').get_lsp_capabilities()
|
local capabilities = require('blink.cmp').get_lsp_capabilities()
|
||||||
|
|
||||||
local servers = {
|
local servers = {
|
||||||
pyright = {
|
ty = {},
|
||||||
on_init = function(client)
|
|
||||||
local venv_path = vim.fn.getcwd() .. '/.venv'
|
|
||||||
if vim.fn.isdirectory(venv_path) == 1 then
|
|
||||||
client.config.settings.python.pythonPath = venv_path .. '/bin/python'
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
settings = {
|
|
||||||
python = {
|
|
||||||
analysis = {
|
|
||||||
typeCheckingMode = 'basic',
|
|
||||||
autoSearchPaths = true,
|
|
||||||
useLibraryCodeForTypes = true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
ruff = {},
|
ruff = {},
|
||||||
docker_compose_language_service = {},
|
docker_compose_language_service = {},
|
||||||
lua_ls = {
|
lua_ls = {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue