Added some documetation for nivm-tree, treesitter and more keymaps for noice

This commit is contained in:
Rakshit Sinha 2024-12-09 17:04:19 -08:00
parent 76905f6f0b
commit 3e9eb8d1d7
3 changed files with 146 additions and 51 deletions

View file

@ -1,59 +1,60 @@
return { -- Highlight, edit, and navigate code
'nvim-treesitter/nvim-treesitter',
event = { 'BufReadPre', 'BufNewFile' },
build = ':TSUpdate',
"nvim-treesitter/nvim-treesitter",
event = { "BufReadPre", "BufNewFile" },
build = ":TSUpdate",
dependencies = {
'windwp/nvim-ts-autotag',
"windwp/nvim-ts-autotag",
},
main = 'nvim-treesitter.configs', -- Sets main module to use for opts
main = "nvim-treesitter.configs", -- Sets main module to use for opts
-- [[ Configure Treesitter ]] See `:help nvim-treesitter`
opts = {
ensure_installed = {
'bash',
--[[
'c',
'diff',
'lua',
'luadoc',
'markdown',
'markdown_inline',
'query',
'vim',
'vimdoc',
'go',
'gomod',
'gosum',
'helm',
'http',
'json',
'java',
'jq',
'javascript',
'typescript',
'tsx',
'yaml',
'html',
'pem',
'perl',
'proto',
'python',
'rust',
'scss',
'sql',
'ssh_config',
'terraform',
'tmux',
'make',
'css',
'graphql',
'svelte',
'bash',
'dockerfile',
'gitignore',
'git_config',
'git_rebase',
'gitcommit',
'query',
'csv',
--]]
"bash",
"lua",
"luadoc",
"markdown",
"markdown_inline",
"vim",
"vimdoc",
"go",
"gomod",
"gosum",
"helm",
"http",
"json",
"java",
"jq",
"javascript",
"typescript",
"tsx",
"yaml",
"html",
"pem",
"perl",
"python",
"rust",
"scss",
"sql",
"ssh_config",
"terraform",
"tmux",
"make",
"css",
"dockerfile",
"gitignore",
"git_config",
"git_rebase",
"gitcommit",
"query",
"csv",
},
-- Autoinstall languages that are not installed
auto_install = true,
@ -62,9 +63,9 @@ return { -- Highlight, edit, and navigate code
-- Some languages depend on vim's regex highlighting system (such as Ruby) for indent rules.
-- If you are experiencing weird indenting issues, add the language to
-- the list of additional_vim_regex_highlighting and disabled languages for indent.
additional_vim_regex_highlighting = { 'ruby' },
additional_vim_regex_highlighting = { "ruby" },
},
indent = { enable = true, disable = { 'ruby' } },
indent = { enable = true, disable = { "ruby" } },
-- enable auto tagging
autotag = {
@ -74,10 +75,10 @@ return { -- Highlight, edit, and navigate code
incremental_selection = {
enable = true,
keymaps = {
init_selection = '<C-space>',
node_incremental = '<C-space>',
init_selection = "<C-space>",
node_incremental = "<C-space>",
scope_incremental = false,
node_decremental = '<bs>',
node_decremental = "<bs>",
},
},
},