diff --git a/install/app-neovim.sh b/install/app-neovim.sh index ee90c99..0152f64 100644 --- a/install/app-neovim.sh +++ b/install/app-neovim.sh @@ -4,7 +4,6 @@ sudo apt install -y neovim if [ ! -d "$HOME/.config/nvim" ]; then git clone https://github.com/LazyVim/starter ~/.config/nvim - cp ~/.local/share/omakub/themes/neovim/commons.lua ~/.config/nvim/lua/plugins/ cp ~/.local/share/omakub/themes/neovim/tokyo-night.lua ~/.config/nvim/lua/plugins/theme.lua # Enable default extras diff --git a/themes/neovim/catppuccin.lua b/themes/neovim/catppuccin.lua index 750c2ad..a1cd989 100644 --- a/themes/neovim/catppuccin.lua +++ b/themes/neovim/catppuccin.lua @@ -4,7 +4,6 @@ return { opts = { transparent_background = true, }, - config = require('plugins.commons').set_transparent_bg() }, { "LazyVim/LazyVim", diff --git a/themes/neovim/commons.lua b/themes/neovim/commons.lua deleted file mode 100644 index 5ea8e17..0000000 --- a/themes/neovim/commons.lua +++ /dev/null @@ -1,31 +0,0 @@ -local commons = {} - -commons.set_transparent_bg = function() - -- 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' }) - - -- hides `~` at the end of the buffer - vim.cmd([[set fillchars+=eob:\ ]]) -end - -return commons diff --git a/themes/neovim/everforest.lua b/themes/neovim/everforest.lua index b01157d..55c78f1 100644 --- a/themes/neovim/everforest.lua +++ b/themes/neovim/everforest.lua @@ -6,6 +6,5 @@ return { colorscheme = "everforest", background = "soft", }, - config = require('plugins.commons').set_transparent_bg() }, } diff --git a/themes/neovim/gruvbox.lua b/themes/neovim/gruvbox.lua index bd27bea..b813025 100644 --- a/themes/neovim/gruvbox.lua +++ b/themes/neovim/gruvbox.lua @@ -5,6 +5,5 @@ return { opts = { colorscheme = "gruvbox", }, - config = require('plugins.commons').set_transparent_bg() }, } diff --git a/themes/neovim/kanagawa.lua b/themes/neovim/kanagawa.lua index c0a3ace..2ad2155 100644 --- a/themes/neovim/kanagawa.lua +++ b/themes/neovim/kanagawa.lua @@ -5,6 +5,5 @@ return { opts = { colorscheme = "kanagawa", }, - config = require('plugins.commons').set_transparent_bg() }, } diff --git a/themes/neovim/nord.lua b/themes/neovim/nord.lua index 57eb467..ba6caf4 100644 --- a/themes/neovim/nord.lua +++ b/themes/neovim/nord.lua @@ -5,6 +5,5 @@ return { opts = { colorscheme = "nord", }, - config = require('plugins.commons').set_transparent_bg() }, } diff --git a/themes/neovim/rose-pine.lua b/themes/neovim/rose-pine.lua index f4fd6ad..c10a0af 100644 --- a/themes/neovim/rose-pine.lua +++ b/themes/neovim/rose-pine.lua @@ -5,6 +5,5 @@ return { opts = { colorscheme = "rose-pine-dawn", }, - config = require('plugins.commons').set_transparent_bg() }, } diff --git a/themes/neovim/tokyo-night.lua b/themes/neovim/tokyo-night.lua index b958fa2..c8f71af 100644 --- a/themes/neovim/tokyo-night.lua +++ b/themes/neovim/tokyo-night.lua @@ -13,7 +13,6 @@ return { sidebars = "transparent", floats = "transparent", }, - config = require('plugins.commons').set_transparent_bg() }, }, }