Skip to content

Commit

Permalink
Add treesitter context back
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrw committed Apr 30, 2024
1 parent 5144358 commit ab5a796
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions home/nixvim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,15 @@ in {
"gitcommit"
];
};
treesitter-context = {
enable = true;
maxLines = 3;
onAttach = ''
function(buf)
vim.cmd.highlight({ "TreesitterContext", "guibg=#363c4a" })
end
'';
};
treesitter-textobjects = {
enable = true;
};
Expand Down

0 comments on commit ab5a796

Please sign in to comment.