aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/lua/pm/plugins/treesitter/setup.lua
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2024-08-15 20:28:13 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2024-08-15 20:28:13 +0200
commit17e319a4455f3135ed3cc759dee8ba5034fde75b (patch)
tree6d07c1875ae2736a5f3eb026a243328ab5c73fca /.config/nvim/lua/pm/plugins/treesitter/setup.lua
parent346854ff3ea83202de7437f01f1c1c336f4c3edf (diff)
update vim configHEADmaster
Diffstat (limited to '.config/nvim/lua/pm/plugins/treesitter/setup.lua')
-rw-r--r--.config/nvim/lua/pm/plugins/treesitter/setup.lua26
1 files changed, 26 insertions, 0 deletions
diff --git a/.config/nvim/lua/pm/plugins/treesitter/setup.lua b/.config/nvim/lua/pm/plugins/treesitter/setup.lua
new file mode 100644
index 0000000..031eec9
--- /dev/null
+++ b/.config/nvim/lua/pm/plugins/treesitter/setup.lua
@@ -0,0 +1,26 @@
+local status_ok, configs = pcall(require, "nvim-treesitter.configs")
+if not status_ok then
+ return
+end
+
+configs.setup({
+ ensure_installed = "all",
+ ignore_install = { "" },
+ highlight = {
+ enable = true,
+ disable = { "css" },
+ },
+ auto_install = true,
+ sync_install = false,
+ modules = {},
+ autopairs = {
+ enable = true,
+ },
+ indent = {
+ enable = true,
+ },
+})
+
+vim.filetype.add({
+ pattern = { [".*/hypr/.*%.conf"] = "hyprlang" },
+})