Skip to content

Commit

Permalink
refactor(nvim-treesitter-context): Just show 3 lines context
Browse files Browse the repository at this point in the history
  • Loading branch information
kang8 committed Dec 21, 2023
1 parent 6604e89 commit 5a21562
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions lua/plugins/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ return {
'nvim-treesitter/nvim-treesitter',
build = ':TSUpdate',
event = 'BufReadPost',
dependencies = {
'nvim-treesitter/nvim-treesitter-context',
config = true,
},
keys = {
{ '<c-space>', desc = 'Increment selection' },
{ '<bs>', desc = 'Schrink selection', mode = 'x' },
Expand Down Expand Up @@ -49,4 +45,13 @@ return {
require('nvim-treesitter.configs').setup(opts)
end,
},
{
'nvim-treesitter/nvim-treesitter-context',
opts = {
max_lines = 3,
},
dependencies = {
'nvim-treesitter/nvim-treesitter',
},
},
}

0 comments on commit 5a21562

Please sign in to comment.