summaryrefslogtreecommitdiffstats
path: root/.config/nvim/lua/user/treesitter.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/user/treesitter.lua')
-rw-r--r--.config/nvim/lua/user/treesitter.lua21
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",
}