mirror of
https://github.com/aljazceru/omakub.git
synced 2026-01-16 02:14:21 +01:00
Merge pull request #79 from 2KAbhishek/feat/transparent-neovim-bg
Adds transparency for neovim
This commit is contained in:
@@ -7,6 +7,12 @@ THEME=$(gum choose "${THEME_NAMES[@]}" --header "Choose your theme" --height 9 |
|
||||
# Install theme in Gnome, Terminal, and both default editors
|
||||
source $OMAKUB_PATH/themes/gnome/$THEME.sh
|
||||
cp $OMAKUB_PATH/themes/alacritty/$THEME.toml ~/.config/alacritty/theme.toml
|
||||
|
||||
if [ ! -f ~/.config/nvim/plugin/after/transparency.lua ]; then
|
||||
mkdir -p ~/.config/nvim/plugin/after
|
||||
cp $OMAKUB_PATH/configs/neovim/transparency.lua ~/.config/nvim/plugin/after/transparency.lua
|
||||
fi
|
||||
|
||||
cp $OMAKUB_PATH/themes/neovim/$THEME.lua ~/.config/nvim/lua/plugins/theme.lua
|
||||
sed -i "s/theme \".*\"/theme \"$THEME\"/g" ~/.config/zellij/config.kdl
|
||||
|
||||
|
||||
22
configs/neovim/transparency.lua
Normal file
22
configs/neovim/transparency.lua
Normal file
@@ -0,0 +1,22 @@
|
||||
-- transparent background
|
||||
vim.api.nvim_set_hl(0, 'Normal', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'NormalFloat', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'FloatBorder', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'Pmenu', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'Terminal', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'EndOfBuffer', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'FoldColumn', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'Folded', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'SignColumn', { bg = 'none' })
|
||||
|
||||
-- transparent background for neotree
|
||||
vim.api.nvim_set_hl(0, 'NeoTreeNormal', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'NeoTreeNormalNC', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'NeoTreeVertSplit', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'NeoTreeWinSeparator', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'NeoTreeEndOfBuffer', { bg = 'none' })
|
||||
|
||||
-- transparent background for nvim-tree
|
||||
vim.api.nvim_set_hl(0, 'NvimTreeNormal', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'NvimTreeVertSplit', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'NvimTreeEndOfBuffer', { bg = 'none' })
|
||||
@@ -4,8 +4,10 @@ sudo apt install -y neovim
|
||||
|
||||
if [ ! -d "$HOME/.config/nvim" ]; then
|
||||
git clone https://github.com/LazyVim/starter ~/.config/nvim
|
||||
mkdir -p ~/.config/nvim/plugin/after
|
||||
cp ~/.local/share/omakub/configs/neovim/transparency.lua ~/.config/nvim/plugin/after/
|
||||
cp ~/.local/share/omakub/themes/neovim/tokyo-night.lua ~/.config/nvim/lua/plugins/theme.lua
|
||||
|
||||
# Enable default extras
|
||||
cp ~/.local/share/omakub/configs/lazyvim.json ~/.config/nvim/lazyvim.json
|
||||
cp ~/.local/share/omakub/configs/neovim/lazyvim.json ~/.config/nvim/lazyvim.json
|
||||
fi
|
||||
|
||||
@@ -1,10 +1,4 @@
|
||||
return {
|
||||
{
|
||||
"catppuccin",
|
||||
opts = {
|
||||
transparent_background = true,
|
||||
},
|
||||
},
|
||||
{
|
||||
"LazyVim/LazyVim",
|
||||
opts = {
|
||||
|
||||
@@ -5,14 +5,4 @@ return {
|
||||
colorscheme = "tokyonight",
|
||||
},
|
||||
},
|
||||
{
|
||||
"folke/tokyonight.nvim",
|
||||
opts = {
|
||||
transparent = true,
|
||||
styles = {
|
||||
sidebars = "transparent",
|
||||
floats = "transparent",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user