Skip to content

Commit

Permalink
Add and configure treesitter-context plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jisantuc committed Nov 13, 2024
1 parent aa7f765 commit 8bbaa03
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions attrs/vimPlugins.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ with vimPlugins;
nvim-lspconfig
nvim-metals
nvim-tree-lua
nvim-treesitter-context
nvim-web-devicons
plenary-nvim
purescript-vim
Expand Down
5 changes: 5 additions & 0 deletions dotfiles/neovim/lua/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,8 @@ require("nvim-treesitter.configs").setup {
disable = {},
},
}

require("treesitter-context").setup {
max_lines = 3,
line_numbers = true
}

0 comments on commit 8bbaa03

Please sign in to comment.