Move more neovim plugins to nix
This commit is contained in:
parent
40e0a096e8
commit
85ebcee9ba
34 changed files with 882 additions and 961 deletions
home/features/neovim/config/lua/my/plugins/themes
|
@ -1,5 +1,4 @@
|
|||
local H = require("my.plugins.themes.helpers")
|
||||
local T = require("nix.theme")
|
||||
local H = require("my.helpers.theme")
|
||||
|
||||
local M = {
|
||||
"uloco/bluloco.nvim",
|
||||
|
@ -12,7 +11,7 @@ function M.config()
|
|||
local bluloco = require("bluloco")
|
||||
|
||||
bluloco.setup({
|
||||
transparent = T.opacity.terminal < 1.0,
|
||||
transparent = H.theme.opacity.terminal < 1.0,
|
||||
style = H.variant("Bluloco"),
|
||||
})
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
local H = require("my.plugins.themes.helpers")
|
||||
local T = require("nix.theme")
|
||||
local H = require("my.helpers.theme")
|
||||
|
||||
local M = {
|
||||
"catppuccin/nvim",
|
||||
|
@ -13,7 +12,7 @@ function M.config()
|
|||
vim.g.catppuccin_flavour = H.variant("Catppuccin")
|
||||
|
||||
catppuccin.setup({
|
||||
transparent_background = T.transparent.terminal,
|
||||
transparent_background = H.theme.transparent.terminal,
|
||||
integrations = {
|
||||
nvimtree = true,
|
||||
telescope = true,
|
||||
|
@ -26,7 +25,7 @@ function M.config()
|
|||
|
||||
vim.cmd("colorscheme catppuccin")
|
||||
|
||||
if T.transparent.terminal then
|
||||
if H.theme.transparent.terminal then
|
||||
vim.cmd([[highlight FloatBorder blend=0 guibg=NONE]])
|
||||
-- vim.cmd([[highlight MiniStatuslineInactive blend=0 guibg=NONE]])
|
||||
vim.cmd([[highlight MiniStatuslineFilename blend=0 guibg=NONE]])
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
local theme = require("nix.theme").name
|
||||
|
||||
local M = {}
|
||||
|
||||
function M.theme_contains(name)
|
||||
return string.find(theme, name) ~= nil
|
||||
end
|
||||
|
||||
function M.variant(name)
|
||||
-- +1 for 1-indexed strings and +1 for the space between name and variant
|
||||
return string.lower(string.sub(theme, string.len(name) + 2))
|
||||
end
|
||||
|
||||
return M
|
|
@ -1,5 +0,0 @@
|
|||
return {
|
||||
require("my.plugins.themes.catppuccin"),
|
||||
require("my.plugins.themes.rosepine"),
|
||||
require("my.plugins.themes.bluloco"),
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
local H = require("my.plugins.themes.helpers")
|
||||
local H = require("my.helpers.theme")
|
||||
|
||||
local M = {
|
||||
"rose-pine/neovim",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue