Skip to content

Commit a347bb4

Browse files
committed
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.
1 parent 01a1ebe commit a347bb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ vim.keymap.set('n', '<leader>sd', require('telescope.builtin').diagnostics, { de
313313
-- See `:help nvim-treesitter`
314314
require('nvim-treesitter.configs').setup {
315315
-- Add languages to be installed here that you want installed for treesitter
316-
ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'typescript', 'vimdoc', 'vim' },
316+
ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'javascript', 'typescript', 'vimdoc', 'vim' },
317317

318318
-- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!)
319319
auto_install = false,

0 commit comments

Comments
 (0)