From 40f2ed94adbb66f19ffbb2363e29b5ccd56b8a5c Mon Sep 17 00:00:00 2001 From: Elias Almqvist Date: Wed, 31 Jan 2024 00:22:01 +0100 Subject: [PATCH] feat: TailwindCSS + other stuff with NvChad --- nvchad/.config/nvim/lua/custom/chadrc.lua | 2 +- nvchad/.config/nvim/lua/custom/configs/lspconfig.lua | 2 +- oh-my-zsh/.oh-my-zsh/aliases.sh | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/nvchad/.config/nvim/lua/custom/chadrc.lua b/nvchad/.config/nvim/lua/custom/chadrc.lua index e070733..d628a06 100644 --- a/nvchad/.config/nvim/lua/custom/chadrc.lua +++ b/nvchad/.config/nvim/lua/custom/chadrc.lua @@ -5,7 +5,7 @@ local M = {} local highlights = require "custom.highlights" M.ui = { - theme = "one_light", + theme = "onedark", theme_toggle = { "onedark", "one_light" }, hl_override = highlights.override, diff --git a/nvchad/.config/nvim/lua/custom/configs/lspconfig.lua b/nvchad/.config/nvim/lua/custom/configs/lspconfig.lua index 319a8e0..57544f7 100644 --- a/nvchad/.config/nvim/lua/custom/configs/lspconfig.lua +++ b/nvchad/.config/nvim/lua/custom/configs/lspconfig.lua @@ -4,7 +4,7 @@ local capabilities = require("plugins.configs.lspconfig").capabilities local lspconfig = require("lspconfig") -- if you just want default config for the servers then put them in a table -local servers = { "html", "cssls", "tsserver", "clangd", "ghdl_ls", "hls" } +local servers = { "html", "cssls", "tsserver", "clangd", "ghdl_ls", "hls", "tailwindcss" } for _, lsp in ipairs(servers) do lspconfig[lsp].setup({ diff --git a/oh-my-zsh/.oh-my-zsh/aliases.sh b/oh-my-zsh/.oh-my-zsh/aliases.sh index f38d37e..c2b72dd 100644 --- a/oh-my-zsh/.oh-my-zsh/aliases.sh +++ b/oh-my-zsh/.oh-my-zsh/aliases.sh @@ -21,3 +21,10 @@ alias gdb-multiarch="arm-none-eabi-gdb" # Git stuff alias gc="git add -A && git commit -m" + +# Very nice things +cd_gitroot() { + cd "$(git rev-parse --show-toplevel)" +} + +alias cr="cd_gitroot"