style: indenting

This commit is contained in:
2024-11-25 14:22:44 -05:00
parent 79fa4babcd
commit fabcdce7de
2 changed files with 156 additions and 154 deletions
+56 -54
View File
@@ -1,59 +1,61 @@
return {
"nvim-treesitter/nvim-treesitter",
event = { "BufReadPre", "BufNewFile" },
build = ":TSUpdate",
'nvim-treesitter/nvim-treesitter',
-- event = { "BufReadPre", "BufNewFile" },
lazy = true,
cmd = { 'TSUpdateSync', 'TSUpdate', 'TSInstall' },
build = ':TSUpdate',
dependencies = {
"windwp/nvim-ts-autotag",
'windwp/nvim-ts-autotag',
},
opts = {
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
},
indent = { enable = true, disable = {} },
autotag = { enable = true },
ensure_installed = {
'bash',
'css',
'diff',
'dockerfile',
'git_config',
'git_rebase',
'gitcommit',
'gitignore',
'graphql',
'html',
'javascript',
'json',
'lua',
'markdown',
'markdown_inline',
'python',
'regex',
'sql',
'todotxt',
'vim',
'vimdoc',
'xml',
'tmux',
'toml',
'yaml',
},
ignore_install = {},
sync_install = true,
auto_install = true,
incremental_selection = {
enable = true,
keymaps = {
init_selection = '<C-space>',
node_incremental = '<C-space>',
scope_incremental = false,
node_decremental = '<bs>',
},
},
},
config = function()
local treesitter = require "nvim-treesitter.configs"
treesitter.setup {
highlight = {
enable = true,
additional_vim_regex_highlighting = true,
},
indent = { enable = true },
autotag = { enable = true },
ensure_installed = {
"bash",
"css",
"diff",
"dockerfile",
"git_config",
"git_rebase",
"gitcommit",
"gitignore",
"graphql",
"html",
"javascript",
"json",
"lua",
"markdown",
"markdown_inline",
"python",
"regex",
"sql",
"todotxt",
"vim",
"vimdoc",
"xml",
"tmux",
"toml",
"yaml",
},
ignore_install = {},
sync_install = true,
auto_install = true,
incremental_selection = {
enable = true,
keymaps = {
init_selection = "<C-space>",
node_incremental = "<C-space>",
scope_incremental = false,
node_decremental = "<bs>",
},
},
}
config = function(_, opts)
require('nvim-treesitter.configs').setup(opts)
end,
}
}