Add lsp config for rust, added more languages to the treesitter ensure_installed since I plan to explore them in the near future

This commit is contained in:
Jose Carvajal 2025-06-20 23:03:32 -06:00
parent e0f01db550
commit 64bb54350a
2 changed files with 10 additions and 2 deletions

View File

@ -19,7 +19,10 @@ return {
-- Automatically install LSPs and related tools to stdpath for Neovim
-- Mason must be loaded before its dependents so we need to set it up here.
-- NOTE: `opts = {}` is the same as calling `require('mason').setup({})`
{ 'mason-org/mason.nvim', opts = {} },
{
'mason-org/mason.nvim',
opts = {},
},
'mason-org/mason-lspconfig.nvim',
'WhoIsSethDaniel/mason-tool-installer.nvim',
@ -290,5 +293,9 @@ return {
-- end
end,
},
{
'simrat39/rust-tools.nvim',
opts = {},
},
}
-- vim: ts=2 sts=2 sw=2 et

View File

@ -8,7 +8,8 @@ return {
-- main = 'nvim-treesitter.configs', -- Sets main module to use for opts
-- [[ Configure Treesitter ]] See `:help nvim-treesitter`
config = function()
local ensureInstalled = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc' }
local ensureInstalled =
{ 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc', 'go', 'rust', 'elixir', 'toml' }
local alreadyInstalled = require('nvim-treesitter').get_installed 'parsers'
local parsersToInstall = vim
.iter(ensureInstalled)