mirror of
https://github.com/gyoder/dots.git
synced 2026-02-27 17:03:45 +00:00
nvim: updated lsp for python and added lsp-config
This commit is contained in:
parent
e307b8d985
commit
8b66f08910
4 changed files with 15 additions and 5 deletions
|
|
@ -1,4 +0,0 @@
|
|||
return {
|
||||
cmd = { "pyright-langserver", "--stdio" },
|
||||
filetypes = { "python" }
|
||||
}
|
||||
5
vim/.config/nvim/lsp/ty.lua
Normal file
5
vim/.config/nvim/lsp/ty.lua
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
return {
|
||||
cmd = { 'uvx', 'ty', 'server' },
|
||||
filetypes = { 'python' },
|
||||
root_markers = { 'ty.toml', 'pyproject.toml', '.git' },
|
||||
}
|
||||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue