nvim: theme & lazy-nvim
This commit is contained in:
@@ -1,12 +1,49 @@
|
||||
{ pkgs, config, ... }:
|
||||
|
||||
{
|
||||
#home.packages = with pkgs; [
|
||||
#neovim
|
||||
#];
|
||||
home.sessionVariables = { EDITOR = "nvim"; };
|
||||
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
|
||||
plugin = with pkgs.vimPlugins; [
|
||||
lazy-nvim
|
||||
|
||||
catppuccin-nvim
|
||||
];
|
||||
|
||||
extraLuaConfig = ''
|
||||
vim.g.mapleader = " "
|
||||
require("lazy").setup({
|
||||
spec = {
|
||||
-- Import plugins from lua/plugins
|
||||
{ import = "plugins" },
|
||||
},
|
||||
performance = {
|
||||
reset_packpath = false,
|
||||
rtp = {
|
||||
reset = false,
|
||||
}
|
||||
},
|
||||
dev = {
|
||||
path = "${
|
||||
pkgs.vimUtils.packDir
|
||||
config.programs.neovim.finalPackage.passthru.packpathDirs
|
||||
}/pack/myNeovimPackages/start",
|
||||
patterns = {"folke", "catppuccin"},
|
||||
},
|
||||
install = {
|
||||
-- Safeguard in case we forget to install a plugin with Nix
|
||||
missing = false,
|
||||
},
|
||||
})
|
||||
require("config/options")
|
||||
'';
|
||||
};
|
||||
|
||||
xdg.configFile."nvim/lua"= {
|
||||
recursive = true;
|
||||
source = ./lua;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user