started neovim-min

This commit is contained in:
John Lancaster
2026-05-06 22:05:02 -05:00
parent d64ce644c3
commit 6b8727b29d
2 changed files with 153 additions and 134 deletions
+36 -18
View File
@@ -6,12 +6,9 @@
};
};
perSystem = { system, pkgs, config, ... }: {
packages.my-neovim = ((inputs.nvf.lib.neovimConfiguration {
inherit pkgs;
modules = [
{
# https://nvf.notashelf.dev/search.html
perSystem = { system, pkgs, config, ... }:
let
commonNeovimModule = {
config.vim = {
options = {
number = true;
@@ -27,7 +24,6 @@
syntaxHighlighting = true;
# Enable custom theming options
theme.enable = true;
theme.name = "catppuccin";
theme.style = "mocha";
@@ -41,7 +37,26 @@
terminal.toggleterm.lazygit.direction = "float";
terminal.toggleterm.lazygit.mappings.open = "<C-g>";
lsp.enable = true;
languages = {
enableTreesitter = true;
enableFormat = true;
nix.enable = true;
yaml.enable = true;
toml.enable = true;
};
};
};
in {
packages.my-neovim = ((inputs.nvf.lib.neovimConfiguration {
inherit pkgs;
modules = [
commonNeovimModule
{
# https://nvf.notashelf.dev/search.html
config.vim = {
utility.nix-develop.enable = true;
utility.oil-nvim.enable = true;
@@ -70,7 +85,11 @@
{
name = "fzf";
packages = [ pkgs.vimPlugins.telescope-fzf-native-nvim ];
setup = {fzf = {fuzzy = true;};};
setup = {
fzf = {
fuzzy = true;
};
};
}
];
};
@@ -81,12 +100,7 @@
grammars = with pkgs.vimPlugins.nvim-treesitter-parsers; [ python ];
};
lsp.enable = true;
languages = {
enableTreesitter = true;
enableFormat = true;
markdown = {
enable = true;
extensions = {
@@ -100,10 +114,6 @@
yaml.enable = true;
toml.enable = true;
nix = {
enable = true;
};
python = {
enable = true;
dap.enable = true;
@@ -152,7 +162,15 @@
];
}).neovim).overrideAttrs (old: {
pname = "my-neovim";
version = "custom";
version = "1.0.0";
});
packages.neovim-min = ((inputs.nvf.lib.neovimConfiguration {
inherit pkgs;
modules = [ commonNeovimModule ];
}).neovim).overrideAttrs (old: {
pname = "neovim-min";
version = "1.0.0";
});
};
}
+1
View File
@@ -137,6 +137,7 @@ in
extraPackages = with pkgs; [
lazydocker
self'.packages.shell-tools
self'.packages.neovim-min
];
}).wrapper;
};