GLSL lang support for TS and bun setup in .zshrc

master
Wynd 2024-10-05 10:18:03 +03:00
parent 1cc407dbb2
commit 441d4fb5ae
4 changed files with 20 additions and 2 deletions

View File

@ -5,8 +5,7 @@ local map = vim.keymap.set
map("x", "p", '"_dP')
-- prevents the deleted text from going into the registry, use `d` for that
map({ "n", "v", "x" }, "x", '"_d')
-- special delete keybind that will not move the deleted selection in a registry
map({ "n", "v" }, "<leader>d", '"_d')
map({ "n", "v", "x" }, "<Del>", '"_x')
-- filthy casual save keybind
map({ "n", "i" }, "<C-s>", "<cmd>w<cr>", { desc = "File Save" })
-- easy way to close the current buffer

View File

@ -5,7 +5,17 @@ return {
config = function()
local configs = require("nvim-treesitter.configs")
vim.filetype.add({
extension = {
fsh = "glsl",
vsh = "glsl",
hbs = "html",
},
})
vim.treesitter.language.register("html", "handlebars")
vim.treesitter.language.register("glsl", { "vsh", "fsh" })
configs.setup({
ensure_installed = {
@ -41,6 +51,7 @@ return {
"c",
"java",
"groovy",
"glsl",
},
sync_install = false,
highlight = { enable = true },

View File

@ -5,4 +5,5 @@
# This doesn't happen when opening from a terminal however.
export PATH=$PATH:/home/wynd/.asdf/shims/ \
&& export PATH=$PATH:/home/wynd/.nimble/bin/ \
&& env -u WAYLAND_DISPLAY alacritty -e nvim "$1"

7
.zshrc
View File

@ -122,6 +122,13 @@ fi
# change cd for zoxide
eval "$(zoxide init --cmd cd zsh)"
# bun completions
[ -s "/home/wynd/.bun/_bun" ] && source "/home/wynd/.bun/_bun"
# bun
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
# clears the screen and displays the figlet
clear
figlet -f 'Red Phoenix' Wynd | lolcat