nvim: updated lsp for python and added lsp-config

This commit is contained in:
gyoder 2025-06-18 16:47:24 -06:00
parent e307b8d985
commit 8b66f08910
4 changed files with 15 additions and 5 deletions

View file

@ -1,4 +0,0 @@
return {
cmd = { "pyright-langserver", "--stdio" },
filetypes = { "python" }
}

View file

@ -0,0 +1,5 @@
return {
cmd = { 'uvx', 'ty', 'server' },
filetypes = { 'python' },
root_markers = { 'ty.toml', 'pyproject.toml', '.git' },
}

View file

@ -16,6 +16,15 @@ vim.lsp.config('pyright', {
vim.lsp.enable("pyright")
vim.lsp.config('ty', {
on_attach = function()
print('ty is now active in this file')
end,
})
-- vim.lsp.enable("ty")
vim.lsp.config('clangd', {
on_attach = function()

View file

@ -16,7 +16,7 @@ local packer_bootstrap = ensure_packer()
return require('packer').startup(function(use)
use 'wbthomason/packer.nvim'
use "neovim/nvim-lspconfig"
use {
'maxmx03/solarized.nvim',