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:
parent
e0f01db550
commit
64bb54350a
|
|
@ -19,7 +19,10 @@ return {
|
||||||
-- Automatically install LSPs and related tools to stdpath for Neovim
|
-- 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.
|
-- 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({})`
|
-- 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',
|
'mason-org/mason-lspconfig.nvim',
|
||||||
'WhoIsSethDaniel/mason-tool-installer.nvim',
|
'WhoIsSethDaniel/mason-tool-installer.nvim',
|
||||||
|
|
||||||
|
|
@ -290,5 +293,9 @@ return {
|
||||||
-- end
|
-- end
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'simrat39/rust-tools.nvim',
|
||||||
|
opts = {},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
-- vim: ts=2 sts=2 sw=2 et
|
-- vim: ts=2 sts=2 sw=2 et
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,8 @@ return {
|
||||||
-- main = 'nvim-treesitter.configs', -- Sets main module to use for opts
|
-- main = 'nvim-treesitter.configs', -- Sets main module to use for opts
|
||||||
-- [[ Configure Treesitter ]] See `:help nvim-treesitter`
|
-- [[ Configure Treesitter ]] See `:help nvim-treesitter`
|
||||||
config = function()
|
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 alreadyInstalled = require('nvim-treesitter').get_installed 'parsers'
|
||||||
local parsersToInstall = vim
|
local parsersToInstall = vim
|
||||||
.iter(ensureInstalled)
|
.iter(ensureInstalled)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue