diff options
author | Freya Murphy <freya@freyacat.org> | 2025-01-22 12:42:03 -0500 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-01-22 12:42:03 -0500 |
commit | 84c6f0eb3dfa8c9187c99d011d7f47c0ec64573c (patch) | |
tree | 6a5cb01d2192b9002017b295e24c8ffed89bd98f /modules/programs/neovim/default.nix | |
parent | wireguard freyanet (diff) | |
download | dotfiles-nix-84c6f0eb3dfa8c9187c99d011d7f47c0ec64573c.tar.gz dotfiles-nix-84c6f0eb3dfa8c9187c99d011d7f47c0ec64573c.tar.bz2 dotfiles-nix-84c6f0eb3dfa8c9187c99d011d7f47c0ec64573c.zip |
use base16 in neovim and starship
Diffstat (limited to 'modules/programs/neovim/default.nix')
-rw-r--r-- | modules/programs/neovim/default.nix | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/modules/programs/neovim/default.nix b/modules/programs/neovim/default.nix index 823d0e4..4c59c09 100644 --- a/modules/programs/neovim/default.nix +++ b/modules/programs/neovim/default.nix @@ -13,7 +13,31 @@ viAlias = true; vimAlias = true; - extraLuaConfig = lib.fileContents ../../../files/config/nvim/init.lua; + extraLuaConfig = let + cfg = lib.fileContents ../../../files/config/nvim/init.lua; + colorscheme = '' + local colorscheme = require('base16-colorscheme') + + colorscheme.setup({ + base00 = '#${config.theme.colors.base00}', + base01 = '#${config.theme.colors.base01}', + base02 = '#${config.theme.colors.base02}', + base03 = '#${config.theme.colors.base03}', + base04 = '#${config.theme.colors.base04}', + base05 = '#${config.theme.colors.base05}', + base06 = '#${config.theme.colors.base06}', + base07 = '#${config.theme.colors.base07}', + base08 = '#${config.theme.colors.base08}', + base09 = '#${config.theme.colors.base09}', + base0A = '#${config.theme.colors.base0A}', + base0B = '#${config.theme.colors.base0B}', + base0C = '#${config.theme.colors.base0C}', + base0D = '#${config.theme.colors.base0D}', + base0E = '#${config.theme.colors.base0E}', + base0F = '#${config.theme.colors.base0F}', + })''; + in + colorscheme + cfg; plugins = with pkgs.vimPlugins; [ # Deoendencies @@ -29,8 +53,6 @@ undotree # undo menu trouble-nvim # error menu telescope-nvim # grep/find menus - # Integrations - vim-fugitive # git # Snippets vim-vsnip vim-vsnip-integ @@ -42,11 +64,11 @@ cmp-vsnip nvim-surround # delimiter # Lsp + base16-nvim # colorscheme nerdcommenter # comment functions nvim-treesitter.withAllGrammars # hilighting vim-illuminate # hilighting todo-comments-nvim # todo comments - catppuccin-nvim # theme nvim-lspconfig # lsp server fidget-nvim # notifications indent-o-matic # auto indentation |