mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
feat: stylix?
This commit is contained in:
parent
2b1fd9b99e
commit
d6d4d38dcc
33 changed files with 465 additions and 629 deletions
|
|
@ -8,22 +8,23 @@
|
|||
inherit (lib.modules) mkIf;
|
||||
inherit (std) string set;
|
||||
initLua = pkgs.replaceVars ./init.lua ({
|
||||
base16ShellPath = config.base16.shell.package;
|
||||
catppuccin_flavour = config.catppuccin.flavor;
|
||||
inherit (config.base16) defaultSchemeName;
|
||||
defaultSchemeSlug = config.base16.defaultScheme.slug;
|
||||
}
|
||||
// set.map (_: col: string.justifyRight 2 "0" (builtins.toString col.ansiIndex))
|
||||
(set.filter (var: _: string.hasInfix "base" var) config.base16.defaultScheme));
|
||||
inity = config.programs.neovim.generatedConfigs.lua;
|
||||
});
|
||||
in {
|
||||
stylix.targets.neovim = {
|
||||
enable = true;
|
||||
transparentBackground = {
|
||||
main = true;
|
||||
signColumn = true;
|
||||
numberLine = true;
|
||||
};
|
||||
};
|
||||
home.sessionVariables = mkIf config.programs.neovim.enable {EDITOR = "nvim";};
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
vimAlias = true;
|
||||
viAlias = true;
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
# Base16 manual
|
||||
config.base16.vim.plugin
|
||||
# Libraries
|
||||
plenary-nvim
|
||||
# Disables and re-enables highlighting when searching
|
||||
|
|
@ -42,8 +43,6 @@ in {
|
|||
hop-nvim
|
||||
# org-mode for vim
|
||||
neorg
|
||||
# base16
|
||||
config.base16.vim.plugin
|
||||
# Fonts
|
||||
nvim-web-devicons
|
||||
# Completion
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
@inity@
|
||||
|
||||
MiniBase16.config.use_cterm = true
|
||||
|
||||
-----------------------------------------------------------
|
||||
-- Variables
|
||||
-----------------------------------------------------------
|
||||
|
|
@ -6,44 +10,6 @@ local opt = vim.opt -- Set options (global/buffer/windows-scoped)
|
|||
local wo = vim.wo -- Window local variables
|
||||
local api = vim.api -- Lua API
|
||||
|
||||
-----------------------------------------------------------
|
||||
-- Base16
|
||||
-----------------------------------------------------------
|
||||
--vim.g.base16colorspace = 256
|
||||
--vim.g.base16background = "@defaultSchemeName@"
|
||||
--g.base16_shell_path = "@base16ShellPath@"
|
||||
--vim.cmd("colorscheme base16-@defaultSchemeSlug@")
|
||||
--g.colors_name = "@defaultSchemeSlug@"
|
||||
|
||||
--local base16 = {
|
||||
-- base00 = "@base00@",
|
||||
-- base01 = "@base01@",
|
||||
-- base02 = "@base02@",
|
||||
-- base03 = "@base03@",
|
||||
-- base04 = "@base04@",
|
||||
-- base05 = "@base05@",
|
||||
-- base06 = "@base06@",
|
||||
-- base07 = "@base07@",
|
||||
-- base08 = "@base08@",
|
||||
-- base09 = "@base09@",
|
||||
-- base0A = "@base0A@",
|
||||
-- base0B = "@base0B@",
|
||||
-- base0C = "@base0C@",
|
||||
-- base0D = "@base0D@",
|
||||
-- base0E = "@base0E@",
|
||||
-- base0F = "@base0F@"
|
||||
--}
|
||||
|
||||
api.nvim_create_autocmd("vimenter", {
|
||||
command = "highlight Normal guibg=NONE ctermbg=NONE"
|
||||
})
|
||||
api.nvim_create_autocmd("SourcePost", {
|
||||
command = "highlight Normal ctermbg=NONE guibg=NONE | " ..
|
||||
"highlight LineNr ctermbg=NONE guibg=NONE | " ..
|
||||
"highlight SignColumn ctermbg=NONE guibg=NONE"
|
||||
})
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
-- General
|
||||
-----------------------------------------------------------
|
||||
|
|
@ -421,5 +387,3 @@ end, {remap=true})
|
|||
vim.keymap.set("", "F", function()
|
||||
hop.hint_char1({ direction = directions.BEFORE_CURSOR, current_line_only = true })
|
||||
end, {remap=true})
|
||||
|
||||
vim.cmd("colorscheme catppuccin-@catppuccin_flavour@")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue