diff options
| author | George Angelopoulos <george@usermod.net> | 2023-08-27 06:48:22 +0300 |
|---|---|---|
| committer | George Angelopoulos <george@usermod.net> | 2023-08-27 06:48:22 +0300 |
| commit | 479929a9f16dd78738dd4dd4ff966d0529c236ce (patch) | |
| tree | fbee4ab2a99a2f8c3bcf5def6fbeb278a37f2956 /nvim/init.lua | |
| parent | afbf692f4ecacff5a5a0735cc97ab4ee0c1e6ed5 (diff) | |
| download | dots-479929a9f16dd78738dd4dd4ff966d0529c236ce.tar.gz | |
treesitter: ensure 'javascript' installed along with typescript and tsx
This parser is actually needed for some *JSX* parsing, and since
typescript and tsx are already getting installed, it makes sense to
also install the javascript parser.
Diffstat (limited to 'nvim/init.lua')
| -rw-r--r-- | nvim/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nvim/init.lua b/nvim/init.lua index 777ae92..20d43b9 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -324,7 +324,7 @@ vim.keymap.set('n', '<leader>sd', require('telescope.builtin').diagnostics, { de -- See `:help nvim-treesitter` require('nvim-treesitter.configs').setup { -- Add languages to be installed here that you want installed for treesitter - ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'typescript', 'vimdoc', 'vim' }, + ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'javascript', 'typescript', 'vimdoc', 'vim' }, -- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!) auto_install = false, |