1
Fork 0

Move neovim dotfiles

This commit is contained in:
Matei Adriel 2023-12-02 00:59:18 +01:00
parent bfc89aff7f
commit a5eae4da13
No known key found for this signature in database
78 changed files with 3 additions and 5 deletions
home/features/neovim/config/lua/my/plugins/themes

View file

@ -0,0 +1,22 @@
local H = require("my.plugins.themes.helpers")
local T = require("nix.theme")
local M = {
"uloco/bluloco.nvim",
lazy = false,
dependencies = { "rktjmp/lush.nvim" },
enabled = H.theme_contains("Bluloco"),
}
function M.config()
local bluloco = require("bluloco")
bluloco.setup({
transparent = T.transparency.enable,
style = H.variant("Bluloco"),
})
vim.cmd("colorscheme bluloco")
end
return M

View file

@ -0,0 +1,30 @@
local H = require("my.plugins.themes.helpers")
local T = require("nix.theme")
local M = {
"catppuccin/nvim",
name = "catppuccin",
lazy = false,
enabled = H.theme_contains("Catppuccin"),
}
function M.config()
local catppuccin = require("catppuccin")
vim.g.catppuccin_flavour = H.variant("Catppuccin")
catppuccin.setup({
transparent_background = T.transparency.enable,
integrations = { nvimtree = true, telescope = true },
})
vim.cmd([[highlight NotifyINFOIcon guifg=#d6b20f]])
vim.cmd([[highlight NotifyINFOTitle guifg=#d6b20f]])
vim.cmd("colorscheme catppuccin")
if T.transparency.enable then
vim.cmd([[highlight FloatBorder blend=0]])
end
end
return M

View file

@ -0,0 +1,14 @@
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

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

View file

@ -0,0 +1,31 @@
local H = require("my.plugins.themes.helpers")
local M = {
"rose-pine/neovim",
name = "rose-pine",
lazy = false,
enabled = H.theme_contains("Rosé Pine"),
}
function M.config()
local variant = H.variant("Rosé Pine")
if variant == "dawn" then
vim.o.background = "light"
else
vim.o.background = "dark"
end
local dark_variants = {
[""] = "main",
moon = "moon",
}
require("rose-pine").setup({
dark_variant = dark_variants[variant],
})
vim.cmd("colorscheme rose-pine")
end
return M