From 7356d51b6c975af128cd23850ee15152a38023b2 Mon Sep 17 00:00:00 2001 From: Ahmad Ansori Palembani Date: Thu, 18 Apr 2024 10:17:07 +0700 Subject: [PATCH] chore(nvim): Add more lang to treesitter --- .config/nvim/lua/null/plugins/treesitter.lua | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.config/nvim/lua/null/plugins/treesitter.lua b/.config/nvim/lua/null/plugins/treesitter.lua index 0b28153..5853652 100644 --- a/.config/nvim/lua/null/plugins/treesitter.lua +++ b/.config/nvim/lua/null/plugins/treesitter.lua @@ -5,10 +5,15 @@ return { ensure_installed = { "c", "fluent", - "python", "go", "gsp", + "hyprlang", "json5", + "julia", + -- "latex", + "python", + "rust", + "sxhkdrc", }, highlight = { @@ -32,6 +37,12 @@ return { }, filetype = "fluent", -- if filetype does not match the parser name } + vim.filetype.add({ + extension = { rasi = "rasi" }, + pattern = { + [".*/hypr/.*%.conf"] = "hyprlang", + }, + }) require("nvim-treesitter.configs").setup(opts) end },