home/nvim: begin incremental migration to nixvim

This commit is contained in:
chayleaf 2024-10-10 03:36:44 +07:00
parent 7e111b4021
commit 4361c9e694
Signed by: chayleaf
GPG key ID: 78171AD46227E68E

View file

@ -76,18 +76,9 @@
{ plugin = ps.vim-svelte; } { plugin = ps.vim-svelte; }
# vim-nix isn't necessary for syntax highlighting, but it improves overall editing experience # vim-nix isn't necessary for syntax highlighting, but it improves overall editing experience
{ plugin = ps.vim-nix; } { plugin = ps.vim-nix; }
{ plugin = pkgs.vimUtils.buildVimPlugin { { settings.colorschemes.vscode = {
pname = "vscode-nvim"; enable = true;
version = "2023-02-10"; settings = {
src = pkgs.fetchFromGitHub {
owner = "Mofiqul";
repo = "vscode.nvim";
rev = "db9ee339b5556aa832ca58871fd18f9467a18520";
sha256 = "sha256-X2IgIjO5NNq7vJdl09hBY1TFqHlsfF1xfllKr4osILI=";
};
};
config = [
((REQ "vscode").setup {
transparent = true; transparent = true;
color_overrides = { color_overrides = {
vscGray = "#745b5f"; vscGray = "#745b5f";
@ -104,7 +95,9 @@
vscYellow = "#${config.colors.yellow}"; vscYellow = "#${config.colors.yellow}";
vscPink = "#cf83c4"; vscPink = "#cf83c4";
}; };
}) };
};
config = [
(vim.api.nvim_set_hl 0 "NormalFloat" { (vim.api.nvim_set_hl 0 "NormalFloat" {
bg = "NONE"; bg = "NONE";
}) })
@ -381,7 +374,7 @@
(which-key.setup { }) (which-key.setup { })
]; } ]; }
]; ];
in { in lib.mkMerge ((builtins.concatLists (map (x: lib.toList (x.settings or [ ])) plugins)) ++ lib.toList {
enable = true; enable = true;
defaultEditor = true; defaultEditor = true;
package = pkgs.neovim-unwrapped; package = pkgs.neovim-unwrapped;
@ -476,5 +469,5 @@
)) ))
]); ]);
extraPlugins = builtins.filter (x: x != null) (map (x: x.plugin or null) plugins); extraPlugins = builtins.filter (x: x != null) (map (x: x.plugin or null) plugins);
}; });
} }