diff options
| author | nsfisis <nsfisis@gmail.com> | 2021-12-04 12:33:24 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2021-12-04 12:33:24 +0900 |
| commit | 7112fed7fe22811ede973b0c95bd9b8442752674 (patch) | |
| tree | c9e9c0640e3b13b7735b4b58e64c95702f0b3a7c | |
| parent | b8d14f4f60fd6a4aa21fdc3d22a9ccf9dcb4398f (diff) | |
| download | dotfiles-7112fed7fe22811ede973b0c95bd9b8442752674.tar.gz dotfiles-7112fed7fe22811ede973b0c95bd9b8442752674.tar.zst dotfiles-7112fed7fe22811ede973b0c95bd9b8442752674.zip | |
neovim: install nvim-treesitter
| -rw-r--r-- | .config/nvim/init.lua | 34 |
1 files changed, 29 insertions, 5 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 135550f..593779d 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -349,6 +349,8 @@ paq({ 'Yggdroot/indentLine', -- Highlight matched parentheses. 'itchyny/vim-parenmatch', + -- Tree-sitter integration. + 'nvim-treesitter/nvim-treesitter', -- Highlight specified words. 't9md/vim-quickhl', -- Filetypes {{{2 @@ -1956,6 +1958,33 @@ vimrc.map_plug('x', 'i<C-w>', '(textobj-wiw-i)') +-- nvim-treesitter {{{2 + +require('nvim-treesitter.configs').setup { + ensure_installed = 'maintained', + sync_install = false, + highlight = { + enable = true, + additional_vim_regex_highlighting = false, + }, + --[[ + incremental_selection = { + enable = true, + keymaps = { + init_selection = 'TODO', + node_incremental = 'TODO', + scope_incremental = 'TODO', + node_decremental = 'TODO', + }, + }, + --]] + indent = { + enable = true, + }, +} + + + -- window-adjuster {{{2 vimrc.map('n', 'tRw', ':<C-u>AdjustScreenWidth<CR>', { silent = true }) @@ -1970,8 +1999,3 @@ vimrc.map('n', 'tRr', ':<C-u>AdjustScreenWidth <Bar> AdjustScreenHeight<CR>', { G.yankround_dir = my_env.yankround_dir G.yankround_use_region_hl = true - - - - - |
