diff options
author | justanothercatgirl <sotov@twistea.su> | 2025-01-17 13:11:40 +0300 |
---|---|---|
committer | justanothercatgirl <sotov@twistea.su> | 2025-01-17 13:11:40 +0300 |
commit | fea38c3c191163ea3f14f2c90236ebbde75fcbe5 (patch) | |
tree | 8a442ee129a787b5b44834e82509fe340182df36 /.config/nvim/lua/user/treesitter.lua | |
parent | b265c328f04362225a9d001580d0b8f5963ee1d9 (diff) |
merged changes from laptop into pc dotfiles
Diffstat (limited to '.config/nvim/lua/user/treesitter.lua')
-rw-r--r-- | .config/nvim/lua/user/treesitter.lua | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/.config/nvim/lua/user/treesitter.lua b/.config/nvim/lua/user/treesitter.lua index 2f4d6b8..4ba181b 100644 --- a/.config/nvim/lua/user/treesitter.lua +++ b/.config/nvim/lua/user/treesitter.lua @@ -3,26 +3,27 @@ local ts = require 'nvim-treesitter' local tsc = require 'nvim-treesitter.configs' + local tsp = require 'nvim-treesitter.parsers' local tsi = require 'nvim-treesitter.install' - + vim.wo.foldmethod = 'expr' vim.wo.foldexpr = 'nvim_treesitter#foldexpr()' - + tsi.compilers = { 'clang' } vim.filetype.add{ - pattern = {[".*/hypr/.*%.conf"] = "hyprlang"}, + pattern = {[".*/hypr/.*%.conf"] = "hyprlang"}, } tsp.get_parser_configs().hyprland = { - install_info = { - url = "~/src/tree-sitter-hyprlang/", - files = {"src/parser.c"}, - branch = "master", - requires_generate_from_grammar = false, --ligma ballse - }, - filetype = "hyprlang", + install_info = { + url = "~/src/tree-sitter-hyprlang/", + files = {"src/parser.c"}, + branch = "master", + requires_generate_from_grammar = false, --ligma ballse + }, + filetype = "hyprlang", } |