40 lines
		
	
	
	
		
			880 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
	
		
			880 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
-- Highlight, edit, and navigate code
 | 
						|
return {
 | 
						|
  "nvim-treesitter/nvim-treesitter",
 | 
						|
  build = ":TSUpdate",
 | 
						|
  config = function () 
 | 
						|
    local configs = require("nvim-treesitter.configs")
 | 
						|
 | 
						|
    configs.setup({
 | 
						|
      ensure_installed = {
 | 
						|
        "bash",
 | 
						|
        "c",
 | 
						|
        "diff",
 | 
						|
        "html",
 | 
						|
        "lua",
 | 
						|
        "luadoc",
 | 
						|
        "markdown",
 | 
						|
        "markdown_inline",
 | 
						|
        "query",
 | 
						|
        "vim",
 | 
						|
        "vimdoc",
 | 
						|
        "go",
 | 
						|
        "typescript",
 | 
						|
        "javascript",
 | 
						|
      },
 | 
						|
      auto_install = true,
 | 
						|
      sync_install = false,
 | 
						|
      highlight = { enable = true },
 | 
						|
      indent = { enable = true },  
 | 
						|
      incremental_selection = {
 | 
						|
        enable = true,
 | 
						|
        keymaps = {
 | 
						|
          init_selection = "<CR>",
 | 
						|
          scope_incremental = "<CR>",
 | 
						|
          node_incremental = "<TAB>",
 | 
						|
          node_decremental = "<S-TAB>",
 | 
						|
        }
 | 
						|
      },
 | 
						|
    })
 | 
						|
  end
 | 
						|
}
 |