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
+41 -39
View File
@@ -1,46 +1,45 @@
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',
},
config = function()
local treesitter = require "nvim-treesitter.configs"
treesitter.setup {
opts = {
highlight = {
enable = true,
additional_vim_regex_highlighting = true,
additional_vim_regex_highlighting = false,
},
indent = { enable = true },
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",
'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,
@@ -48,12 +47,15 @@ return {
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>',
},
},
}
},
config = function(_, opts)
require('nvim-treesitter.configs').setup(opts)
end,
}
+5 -5
View File
@@ -105,10 +105,10 @@ return {
vim.keymap.set({ 'n', 'x', 'o' }, ';', ts_repeat_move.repeat_last_move)
vim.keymap.set({ 'n', 'x', 'o' }, ',', ts_repeat_move.repeat_last_move_opposite)
-- Optionally, make builtin f, F, t, T also repeatable with ; and ,
vim.keymap.set({ 'n', 'x', 'o' }, 'f', ts_repeat_move.builtin_f)
vim.keymap.set({ 'n', 'x', 'o' }, 'F', ts_repeat_move.builtin_F)
vim.keymap.set({ 'n', 'x', 'o' }, 't', ts_repeat_move.builtin_t)
vim.keymap.set({ 'n', 'x', 'o' }, 'T', ts_repeat_move.builtin_T)
-- -- Optionally, make builtin f, F, t, T also repeatable with ; and ,
-- vim.keymap.set({ 'n', 'x', 'o' }, 'f', ts_repeat_move.builtin_f)
-- vim.keymap.set({ 'n', 'x', 'o' }, 'F', ts_repeat_move.builtin_F)
-- vim.keymap.set({ 'n', 'x', 'o' }, 't', ts_repeat_move.builtin_t)
-- vim.keymap.set({ 'n', 'x', 'o' }, 'T', ts_repeat_move.builtin_T)
end,
}