diff --git a/neovim/.config/nvim/lua/packages.lua b/neovim/.config/nvim/lua/packages.lua index 0874580..9706d9d 100644 --- a/neovim/.config/nvim/lua/packages.lua +++ b/neovim/.config/nvim/lua/packages.lua @@ -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', }, + } })