feat(neovim): add c_sharp treesitter query, fold regions
This commit is contained in:
parent
c848b78eda
commit
b9e6347a04
|
@ -137,6 +137,11 @@ in
|
||||||
source = ./lua;
|
source = ./lua;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
xdg.configFile."nvim/queries" = {
|
||||||
|
recursive = true;
|
||||||
|
source = ./queries;
|
||||||
|
};
|
||||||
|
|
||||||
xdg.configFile."nvim/lua/plugins/astrolsp.lua".source = pkgs.runCommand "astrolsp.lua" { } ''
|
xdg.configFile."nvim/lua/plugins/astrolsp.lua".source = pkgs.runCommand "astrolsp.lua" { } ''
|
||||||
cp ${./lsp.lua} $out
|
cp ${./lsp.lua} $out
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
;; extends
|
||||||
|
|
||||||
|
; Capture entire regions for folding
|
||||||
|
(
|
||||||
|
(preproc_region) @region_begin
|
||||||
|
.
|
||||||
|
[
|
||||||
|
(declaration)
|
||||||
|
(type_declaration)
|
||||||
|
]*
|
||||||
|
.
|
||||||
|
(preproc_endregion) @region_end
|
||||||
|
(#make-range! "fold" @region_begin @region_end)
|
||||||
|
)
|
Loading…
Reference in a new issue