Init switch to ty

This commit is contained in:
Thomas Lazarus 2026-01-03 11:35:03 -06:00
parent 62933b1a7f
commit aeb0ada8e2
No known key found for this signature in database
1 changed files with 1 additions and 17 deletions

View File

@ -154,23 +154,7 @@ return {
local capabilities = require('blink.cmp').get_lsp_capabilities()
local servers = {
pyright = {
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,
},
},
},
},
ty = {},
ruff = {},
docker_compose_language_service = {},
lua_ls = {