diff options
| -rw-r--r-- | nvim/lua/plugins/nvim-treesitter.lua | 73 | ||||
| -rwxr-xr-x | scripts/set_background | 2 |
2 files changed, 32 insertions, 43 deletions
diff --git a/nvim/lua/plugins/nvim-treesitter.lua b/nvim/lua/plugins/nvim-treesitter.lua index c28386d..c053e84 100644 --- a/nvim/lua/plugins/nvim-treesitter.lua +++ b/nvim/lua/plugins/nvim-treesitter.lua @@ -1,32 +1,6 @@ local config = function() - require("nvim-treesitter.configs").setup({ - ensure_installed = { - "c", - "lua", - "markdown", - "vim", - "vimdoc", - "query", - - "regex", - "diff", - "cmake", - "meson", - "markdown_inline", - "bash", - "toml", - "latex", - - "cpp", - "rust", - "haskell", - "nix", - "javascript", - "norg", - "fish", - "kdl", - "bend", - }, + require("nvim-treesitter.config").setup { + install_dir = vim.fn.stdpath('data') .. '/site', auto_install = false, sync_install = false, highlight = { @@ -42,22 +16,37 @@ local config = function() autotag = { enable = true, }, - }) - - vim.filetype.add({ - extension = { - bend = "bend", - }, - }) - - vim.treesitter.language.register("bend", { "bend" }) - - vim.cmd(":TSUpdate") + } + require("nvim-treesitter").install { + "c", + "lua", + "markdown", + "vim", + "vimdoc", + "query", + "regex", + "diff", + "cmake", + "meson", + "markdown_inline", + "bash", + "toml", + "latex", + "cpp", + "rust", + "haskell", + "nix", + "javascript", + "norg", + "fish", + "kdl", + } end return { "nvim-treesitter/nvim-treesitter", - lazy = true, - event = { "BufReadPost", "BufWritePost", "BufNewFile" }, - config = config, + lazy = false, + branch = "main", + build = ":TSUpdate", + config = config } diff --git a/scripts/set_background b/scripts/set_background index b9c8b80..0dd7347 100755 --- a/scripts/set_background +++ b/scripts/set_background @@ -8,7 +8,7 @@ wallust run $argv[1] -Ts; and begin niri msg action do-screen-transition set -U IMG $argv[1] & wallust -q run $IMG & - killall swaybg ; swaybg -i $IMG & + killall swaybg ; swaybg -i $IMG -m fill & makoctl reload & notify-send -i $IMG "Wallust" "Changed wallpaper and palette." end; or begin |
