style: indenting
This commit is contained in:
@@ -1,46 +1,45 @@
|
|||||||
return {
|
return {
|
||||||
"nvim-treesitter/nvim-treesitter",
|
'nvim-treesitter/nvim-treesitter',
|
||||||
event = { "BufReadPre", "BufNewFile" },
|
-- event = { "BufReadPre", "BufNewFile" },
|
||||||
build = ":TSUpdate",
|
lazy = true,
|
||||||
|
cmd = { 'TSUpdateSync', 'TSUpdate', 'TSInstall' },
|
||||||
|
build = ':TSUpdate',
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"windwp/nvim-ts-autotag",
|
'windwp/nvim-ts-autotag',
|
||||||
},
|
},
|
||||||
config = function()
|
opts = {
|
||||||
local treesitter = require "nvim-treesitter.configs"
|
|
||||||
|
|
||||||
treesitter.setup {
|
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
enable = true,
|
||||||
additional_vim_regex_highlighting = true,
|
additional_vim_regex_highlighting = false,
|
||||||
},
|
},
|
||||||
indent = { enable = true },
|
indent = { enable = true, disable = {} },
|
||||||
autotag = { enable = true },
|
autotag = { enable = true },
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"bash",
|
'bash',
|
||||||
"css",
|
'css',
|
||||||
"diff",
|
'diff',
|
||||||
"dockerfile",
|
'dockerfile',
|
||||||
"git_config",
|
'git_config',
|
||||||
"git_rebase",
|
'git_rebase',
|
||||||
"gitcommit",
|
'gitcommit',
|
||||||
"gitignore",
|
'gitignore',
|
||||||
"graphql",
|
'graphql',
|
||||||
"html",
|
'html',
|
||||||
"javascript",
|
'javascript',
|
||||||
"json",
|
'json',
|
||||||
"lua",
|
'lua',
|
||||||
"markdown",
|
'markdown',
|
||||||
"markdown_inline",
|
'markdown_inline',
|
||||||
"python",
|
'python',
|
||||||
"regex",
|
'regex',
|
||||||
"sql",
|
'sql',
|
||||||
"todotxt",
|
'todotxt',
|
||||||
"vim",
|
'vim',
|
||||||
"vimdoc",
|
'vimdoc',
|
||||||
"xml",
|
'xml',
|
||||||
"tmux",
|
'tmux',
|
||||||
"toml",
|
'toml',
|
||||||
"yaml",
|
'yaml',
|
||||||
},
|
},
|
||||||
ignore_install = {},
|
ignore_install = {},
|
||||||
sync_install = true,
|
sync_install = true,
|
||||||
@@ -48,12 +47,15 @@ return {
|
|||||||
incremental_selection = {
|
incremental_selection = {
|
||||||
enable = true,
|
enable = true,
|
||||||
keymaps = {
|
keymaps = {
|
||||||
init_selection = "<C-space>",
|
init_selection = '<C-space>',
|
||||||
node_incremental = "<C-space>",
|
node_incremental = '<C-space>',
|
||||||
scope_incremental = false,
|
scope_incremental = false,
|
||||||
node_decremental = "<bs>",
|
node_decremental = '<bs>',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
|
|
||||||
|
config = function(_, opts)
|
||||||
|
require('nvim-treesitter.configs').setup(opts)
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
@@ -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)
|
||||||
vim.keymap.set({ 'n', 'x', 'o' }, ',', ts_repeat_move.repeat_last_move_opposite)
|
vim.keymap.set({ 'n', 'x', 'o' }, ',', ts_repeat_move.repeat_last_move_opposite)
|
||||||
|
|
||||||
-- Optionally, make builtin f, F, t, T also repeatable with ; and ,
|
-- -- 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' }, '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)
|
||||||
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,
|
end,
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user