From 31c543f8116c21792f054f29163053b67c13fe0a Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Mon, 3 Apr 2023 10:28:08 -0700 Subject: [PATCH] treesitter-context --- .config/nvim/fnl/init.fnl | 3 +++ .gitmodules | 4 ++++ .local/share/nvim/site/pack/alpha/start/treesitter-context | 1 + 3 files changed, 8 insertions(+) create mode 160000 .local/share/nvim/site/pack/alpha/start/treesitter-context diff --git a/.config/nvim/fnl/init.fnl b/.config/nvim/fnl/init.fnl index 41b2cde..3aeaf5b 100644 --- a/.config/nvim/fnl/init.fnl +++ b/.config/nvim/fnl/init.fnl @@ -180,6 +180,9 @@ :aa "@parameter.outer" :ia "@parameter.inner"}}}})) +(let [tscontext (require :treesitter-context)] + (tscontext.setup)) + (set vim.o.foldmethod :expr) (set vim.o.foldexpr "nvim_treesitter#foldexpr()") diff --git a/.gitmodules b/.gitmodules index c31dca5..1fce611 100644 --- a/.gitmodules +++ b/.gitmodules @@ -287,3 +287,7 @@ path = src/fzf-git.sh url = https://github.com/junegunn/fzf-git.sh.git branch = main +[submodule ".local/share/nvim/site/pack/alpha/start/treesitter-context"] + path = .local/share/nvim/site/pack/alpha/start/treesitter-context + url = https://github.com/nvim-treesitter/nvim-treesitter-context.git + branch = master diff --git a/.local/share/nvim/site/pack/alpha/start/treesitter-context b/.local/share/nvim/site/pack/alpha/start/treesitter-context new file mode 160000 index 0000000..959265a --- /dev/null +++ b/.local/share/nvim/site/pack/alpha/start/treesitter-context @@ -0,0 +1 @@ +Subproject commit 959265a5d438462dc5d3dde215b915109c3d6fcb