diff options
Diffstat (limited to 'nvim/lua/plugins/nvim-treesitter.lua')
| -rw-r--r-- | nvim/lua/plugins/nvim-treesitter.lua | 100 |
1 files changed, 55 insertions, 45 deletions
diff --git a/nvim/lua/plugins/nvim-treesitter.lua b/nvim/lua/plugins/nvim-treesitter.lua index 103d5d9..c28386d 100644 --- a/nvim/lua/plugins/nvim-treesitter.lua +++ b/nvim/lua/plugins/nvim-treesitter.lua @@ -1,53 +1,63 @@ local config = function() - require("nvim-treesitter.configs").setup({ - ensure_installed = { - "c", - "lua", - "markdown", - "vim", - "vimdoc", - "query", + require("nvim-treesitter.configs").setup({ + ensure_installed = { + "c", + "lua", + "markdown", + "vim", + "vimdoc", + "query", - "regex", - "diff", - "cmake", - "meson", - "markdown_inline", - "bash", - "toml", - "latex", + "regex", + "diff", + "cmake", + "meson", + "markdown_inline", + "bash", + "toml", + "latex", - "cpp", - "rust", - "haskell", - "nix", - "javascript", - "norg", - "fish", - "kdl", - }, - auto_install = false, - highlight = { - enable = true, - additional_vim_regex_highlighting = false, - }, - incremental_selection = { - enable = true - }, - indent = { - enable = true, - }, - autotag = { - enable = true, - }, - }) + "cpp", + "rust", + "haskell", + "nix", + "javascript", + "norg", + "fish", + "kdl", + "bend", + }, + auto_install = false, + sync_install = false, + highlight = { + enable = true, + additional_vim_regex_highlighting = false, + }, + incremental_selection = { + enable = true + }, + indent = { + enable = true, + }, + autotag = { + enable = true, + }, + }) - vim.cmd(":TSUpdate") + vim.filetype.add({ + extension = { + bend = "bend", + }, + }) + + vim.treesitter.language.register("bend", { "bend" }) + + vim.cmd(":TSUpdate") end return { - "nvim-treesitter/nvim-treesitter", - lazy = true, - event = { "BufReadPost", "BufWritePost", "BufNewFile" }, - config = config, + "nvim-treesitter/nvim-treesitter", + lazy = true, + event = { "BufReadPost", "BufWritePost", "BufNewFile" }, + config = config, } |
