feat: enable `auto_install` for `nvim-treesitter`
This commit is contained in:
parent
f2dedf6e3e
commit
c8281627e7
3
init.lua
3
init.lua
|
@ -186,7 +186,8 @@ vim.keymap.set('n', '<leader>sd', require('telescope.builtin').diagnostics, { de
|
||||||
require('nvim-treesitter.configs').setup {
|
require('nvim-treesitter.configs').setup {
|
||||||
-- Add languages to be installed here that you want installed for treesitter
|
-- Add languages to be installed here that you want installed for treesitter
|
||||||
ensure_installed = { 'lua', 'typescript', 'rust', 'go', 'python' },
|
ensure_installed = { 'lua', 'typescript', 'rust', 'go', 'python' },
|
||||||
|
-- Auto install parsers, if missing, for the current buffer
|
||||||
|
auto_install = true,
|
||||||
highlight = { enable = true },
|
highlight = { enable = true },
|
||||||
indent = { enable = true },
|
indent = { enable = true },
|
||||||
incremental_selection = {
|
incremental_selection = {
|
||||||
|
|
Loading…
Reference in New Issue