Use the same color scheme across wezterm/neovim.
parent
f1678522c1
commit
0775ad0789
|
@ -2,6 +2,15 @@ args @ { config, pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
utils = import ./utils.nix args;
|
utils = import ./utils.nix args;
|
||||||
|
|
||||||
|
nightfox = {
|
||||||
|
plugin = utils.pluginGit
|
||||||
|
"eb82712f86319272f4b7b9dbb4ec6df650e6987f"
|
||||||
|
"EdenEast/nightfox.nvim";
|
||||||
|
config = ''
|
||||||
|
vim.cmd('colorscheme nordfox')
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
nvim-cmp = {
|
nvim-cmp = {
|
||||||
plugin = pkgs.vimPlugins.nvim-cmp;
|
plugin = pkgs.vimPlugins.nvim-cmp;
|
||||||
config = ''
|
config = ''
|
||||||
|
@ -84,6 +93,7 @@ in
|
||||||
inherit (p) plugin;
|
inherit (p) plugin;
|
||||||
config = "lua << EOF\n${p.config}\nEOF";
|
config = "lua << EOF\n${p.config}\nEOF";
|
||||||
} else p) [
|
} else p) [
|
||||||
|
nightfox
|
||||||
nvim-cmp
|
nvim-cmp
|
||||||
nvim-dap
|
nvim-dap
|
||||||
nvim-lspconfig
|
nvim-lspconfig
|
||||||
|
@ -98,22 +108,16 @@ in
|
||||||
vimAlias = true;
|
vimAlias = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.configFile."nvim/init.lua".text = lib.mkMerge [
|
xdg.configFile."nvim/init.lua".text =
|
||||||
# Extra Lua configuration to be prepended to `init.lua`. Extend the Lua
|
let
|
||||||
# loader to search for our /nix/store/.../?.lua files.
|
lua = import ./lua { inherit pkgs; };
|
||||||
(let
|
in
|
||||||
lua = pkgs.stdenv.mkDerivation {
|
lib.mkMerge [
|
||||||
name = "lua";
|
# Extra Lua configuration to be prepended to `init.lua`. Extend the
|
||||||
src = ./lua;
|
# Lua loader to search for our /nix/store/.../?.lua files.
|
||||||
installPhase = ''
|
(lib.mkBefore ''
|
||||||
mkdir -p $out/
|
|
||||||
cp -r ./* $out/
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
in lib.mkBefore ''
|
|
||||||
package.path = '${lua}/?.lua;' .. package.path
|
package.path = '${lua}/?.lua;' .. package.path
|
||||||
'')
|
'')
|
||||||
|
|
||||||
# Extra Lua configuration to be appended to `init.lua`.
|
# Extra Lua configuration to be appended to `init.lua`.
|
||||||
(lib.mkAfter ''
|
(lib.mkAfter ''
|
||||||
vim.g.mapleader = ' '
|
vim.g.mapleader = ' '
|
||||||
|
|
|
@ -2,7 +2,7 @@ local wezterm = require('wezterm')
|
||||||
|
|
||||||
return {
|
return {
|
||||||
check_for_updates = false,
|
check_for_updates = false,
|
||||||
color_scheme = 'Chalk (Gogh)',
|
color_scheme = 'nordfox',
|
||||||
font = wezterm.font 'Iosevka',
|
font = wezterm.font 'Iosevka',
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue