Explorar o código

Merge pull request #410 from gangelop/TSInstall-javascript

treesitter: ensure 'javascript' installed along with typescript and tsx
Chris Patti %!s(int64=3) %!d(string=hai) anos
pai
achega
1a971cbdcf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      init.lua

+ 1 - 1
init.lua

@@ -313,7 +313,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,