1
Fork 0

Move more neovim plugins to nix

This commit is contained in:
Matei Adriel 2023-12-21 16:21:14 +01:00
parent 40e0a096e8
commit 85ebcee9ba
No known key found for this signature in database
34 changed files with 882 additions and 961 deletions
home/features/neovim/config/lua/my/plugins/themes

View file

@ -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"),
})

View file

@ -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]])

View file

@ -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

View file

@ -1,5 +0,0 @@
return {
require("my.plugins.themes.catppuccin"),
require("my.plugins.themes.rosepine"),
require("my.plugins.themes.bluloco"),
}

View file

@ -1,4 +1,4 @@
local H = require("my.plugins.themes.helpers")
local H = require("my.helpers.theme")
local M = {
"rose-pine/neovim",