浏览代码

Added cpp to treesitter and ordered TS imports

Ash 4 年之前
父节点
当前提交
510ca59a6c
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      init.lua

+ 1 - 1
init.lua

@@ -187,7 +187,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 = { 'lua', 'typescript', 'rust', 'go', 'python' },
+  ensure_installed = {'c', 'cpp', 'go', 'lua', 'python', 'rust', 'typescript'},
 
   highlight = { enable = true },
   indent = { enable = true },