Browse Source

nixpkgs/neovim: add nvim-treesitter-context

Thomas Dy 1 tháng trước cách đây
mục cha
commit
1b081d3a55

+ 6 - 0
.config/nixpkgs/neovim/plugins.lua

@@ -258,6 +258,12 @@ require('treesj').setup({
   use_default_keymaps = false,
 })
 
+-- Treesitter context
+require('treesitter-context').setup({
+  enable = true,
+  multiline_threshold = 5,
+})
+
 -- completion
 local cmp = require('cmp')
 local cmp_types = require('cmp.types')

+ 4 - 0
.config/nixpkgs/neovim/plugins/sources.json

@@ -92,5 +92,9 @@
     "optional": true,
     "rev": "3ba0c02c378503739f1fdb95cff3ea2aad48db3e",
     "sha256": "0pvb25bdmx4hxs3g7pkdqfjg3qpnr9p5szzbqqwaw3lbdnbyykzy"
+  },
+  "nvim-treesitter/nvim-treesitter-context": {
+    "rev": "78a81c7494e7d1a08dd1200b556933e513fd9f29",
+    "sha256": "19vf1wlvi7nggwzawaqyp81jk8hp85xsg1nm9cgjzk9fvywddnpc"
   }
 }