aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorericmarin <maarin.eric@gmail.com>2026-04-09 17:07:31 +0200
committerericmarin <maarin.eric@gmail.com>2026-04-09 17:07:31 +0200
commit4373c2db3d54802735105bc3ca602214d94b9f16 (patch)
tree4644bbdce3dc3edff620dcb629550f55451751e5
parenta15c537f608db166f734d3a7e8d3c68bf17f55d7 (diff)
downloaddotfiles-4373c2db3d54802735105bc3ca602214d94b9f16.tar.gz
dotfiles-4373c2db3d54802735105bc3ca602214d94b9f16.zip
updated nvim-treesitterHEADmaster
-rw-r--r--nvim/lua/plugins/nvim-treesitter.lua73
-rwxr-xr-xscripts/set_background2
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