added pylsp.

This commit is contained in:
Gabe Venberg 2023-09-15 10:41:57 -05:00
parent e478c5d852
commit 81245ce4ac

View file

@ -374,5 +374,83 @@ require('lazy').setup({
'ellisonleao/gruvbox.nvim',
lazy = true,
},
use { 'nvim-treesitter/nvim-treesitter',
run = ':TSUpdate',
config = function()
require('nvim-treesitter').setup {
ensure_installed = {
'c',
'lua',
'vim',
'vimdoc',
'query',
'bash',
'comment',
'cpp',
'diff',
'git_config',
'git_rebase',
'gitattributes',
'gitcommit',
'gitignore',
'json',
'jsonc',
'latex',
'make',
'python',
'regex',
'rust',
'toml',
},
auto_install = true,
highlight = { enable = true },
indent = { enable = true },
incremental_selection = { enable = true }
}
end,
}
use {
{
"williamboman/mason.nvim",
config = function()
require("mason").setup({
ui = {
icons = {
package_installed = "",
package_pending = "",
package_uninstalled = ""
}
}
})
end
},
{
"williamboman/mason-lspconfig.nvim",
after = "mason.nvim",
config = function()
require("mason-lspconfig").setup({
ensure_installed = {
'lua_ls',
'rust_analyzer',
'bashls',
'pylsp', -- run PylspInstall pylsp-rope python-lsp-black python-lsp-ruff
'pyright',
'texlab',
'clangd',
},
automatic_installation = true
})
end
},
{
"neovim/nvim-lspconfig",
after = { "mason-lspconfig.nvim", "rust-tools.nvim" },
config = function()
require('LSPconfig')
end
},
{ 'simrat39/rust-tools.nvim', },
{ 'mfussenegger/nvim-jdtls', },
}
})