Skip to content

Commit

Permalink
feat(treesitter): add nvim-treesitter-context by default
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Oct 12, 2023
1 parent 13dbe4a commit 7b2c317
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lua/lazyvim/plugins/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,15 @@ return {
require("nvim-treesitter.configs").setup(opts)
end,
},

-- Show context of the current function
{
"nvim-treesitter/nvim-treesitter-context",
event = "LazyFile",
enabled = true,
opts = { mode = "cursor" },
},

-- Automatically add closing tags for HTML and JSX
{
"windwp/nvim-ts-autotag",
Expand Down

0 comments on commit 7b2c317

Please sign in to comment.