diff options
author | justanothercatgirl <sotov2070@gmail.com> | 2025-01-17 12:47:53 +0300 |
---|---|---|
committer | justanothercatgirl <sotov2070@gmail.com> | 2025-01-17 12:47:53 +0300 |
commit | b265c328f04362225a9d001580d0b8f5963ee1d9 (patch) | |
tree | 0f924f1bf1ee32a5498617258bbdac21777a0876 /.config/nvim/lua/user/treesitter.lua | |
parent | b2b543355c03ec24281d05380f92e2e793e511f4 (diff) |
I don't even know at this point
Diffstat (limited to '.config/nvim/lua/user/treesitter.lua')
-rw-r--r-- | .config/nvim/lua/user/treesitter.lua | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/.config/nvim/lua/user/treesitter.lua b/.config/nvim/lua/user/treesitter.lua index 74b8f56..2f4d6b8 100644 --- a/.config/nvim/lua/user/treesitter.lua +++ b/.config/nvim/lua/user/treesitter.lua @@ -3,10 +3,29 @@ 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"}, +} + +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", +} + + tsc.setup{ ensure_installed = { "rust", "cpp", "python" }, auto_install = true, |