Skip to content

Commit

Permalink
UPDATE: new confs in treesitter for visual selection.
Browse files Browse the repository at this point in the history
  • Loading branch information
mthnglac committed Apr 5, 2021
1 parent 950faf9 commit 7d21e36
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
3 changes: 0 additions & 3 deletions nvim/lua/install-plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@ plug(tostring(os.getenv("HOME")) .. '/.vim/plugged', {
'toranb/vim-ember-cli-test-runner';
-- dispatcher
'tpope/vim-dispatch';
-- selection increaser/decreaser
'terryma/vim-expand-region';
-- Git - blamer
--'APZelos/blamer.nvim';
'ttys3/nvim-blamer.lua';
-- Git - show commit of current line
'rhysd/git-messenger.vim';
Expand Down
1 change: 1 addition & 0 deletions nvim/lua/plugins/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ require('plugins.nvim-blamer')
require('plugins.prettier')
require('plugins.polyglot')
require('plugins.nerdtree')
require('plugins.nvim-treesitter')
require('plugins.undotree')
require('plugins.telescope')
require('plugins.quick-scope')
1 change: 1 addition & 0 deletions nvim/lua/plugins/nvim-treesitter/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require('plugins.nvim-treesitter.settings')
17 changes: 17 additions & 0 deletions nvim/lua/plugins/nvim-treesitter/settings.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
require'nvim-treesitter.configs'.setup {
highlight = {
enable = true,
},
incremental_selection = {
enable = true,
keymaps = {
init_selection = "gnn",
node_incremental = "grn",
scope_incremental = "grc",
node_decremental = "grm",
},
},
indent = {
enable = true,
}
}

0 comments on commit 7d21e36

Please sign in to comment.