GLSL lang support for TS and bun setup in .zshrc
parent
1cc407dbb2
commit
441d4fb5ae
|
@ -5,8 +5,7 @@ local map = vim.keymap.set
|
||||||
map("x", "p", '"_dP')
|
map("x", "p", '"_dP')
|
||||||
-- prevents the deleted text from going into the registry, use `d` for that
|
-- prevents the deleted text from going into the registry, use `d` for that
|
||||||
map({ "n", "v", "x" }, "x", '"_d')
|
map({ "n", "v", "x" }, "x", '"_d')
|
||||||
-- special delete keybind that will not move the deleted selection in a registry
|
map({ "n", "v", "x" }, "<Del>", '"_x')
|
||||||
map({ "n", "v" }, "<leader>d", '"_d')
|
|
||||||
-- filthy casual save keybind
|
-- filthy casual save keybind
|
||||||
map({ "n", "i" }, "<C-s>", "<cmd>w<cr>", { desc = "File Save" })
|
map({ "n", "i" }, "<C-s>", "<cmd>w<cr>", { desc = "File Save" })
|
||||||
-- easy way to close the current buffer
|
-- easy way to close the current buffer
|
||||||
|
|
|
@ -5,7 +5,17 @@ return {
|
||||||
config = function()
|
config = function()
|
||||||
local configs = require("nvim-treesitter.configs")
|
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("html", "handlebars")
|
||||||
|
vim.treesitter.language.register("glsl", { "vsh", "fsh" })
|
||||||
|
|
||||||
configs.setup({
|
configs.setup({
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
|
@ -41,6 +51,7 @@ return {
|
||||||
"c",
|
"c",
|
||||||
"java",
|
"java",
|
||||||
"groovy",
|
"groovy",
|
||||||
|
"glsl",
|
||||||
},
|
},
|
||||||
sync_install = false,
|
sync_install = false,
|
||||||
highlight = { enable = true },
|
highlight = { enable = true },
|
||||||
|
|
|
@ -5,4 +5,5 @@
|
||||||
# This doesn't happen when opening from a terminal however.
|
# This doesn't happen when opening from a terminal however.
|
||||||
|
|
||||||
export PATH=$PATH:/home/wynd/.asdf/shims/ \
|
export PATH=$PATH:/home/wynd/.asdf/shims/ \
|
||||||
|
&& export PATH=$PATH:/home/wynd/.nimble/bin/ \
|
||||||
&& env -u WAYLAND_DISPLAY alacritty -e nvim "$1"
|
&& env -u WAYLAND_DISPLAY alacritty -e nvim "$1"
|
||||||
|
|
7
.zshrc
7
.zshrc
|
@ -122,6 +122,13 @@ fi
|
||||||
# change cd for zoxide
|
# change cd for zoxide
|
||||||
eval "$(zoxide init --cmd cd zsh)"
|
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
|
# clears the screen and displays the figlet
|
||||||
clear
|
clear
|
||||||
figlet -f 'Red Phoenix' Wynd | lolcat
|
figlet -f 'Red Phoenix' Wynd | lolcat
|
||||||
|
|
Loading…
Reference in New Issue