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
+38 -20
View File
@@ -6,12 +6,9 @@
}; };
}; };
perSystem = { system, pkgs, config, ... }: { perSystem = { system, pkgs, config, ... }:
packages.my-neovim = ((inputs.nvf.lib.neovimConfiguration { let
inherit pkgs; commonNeovimModule = {
modules = [
{
# https://nvf.notashelf.dev/search.html
config.vim = { config.vim = {
options = { options = {
number = true; number = true;
@@ -27,7 +24,6 @@
syntaxHighlighting = true; syntaxHighlighting = true;
# Enable custom theming options
theme.enable = true; theme.enable = true;
theme.name = "catppuccin"; theme.name = "catppuccin";
theme.style = "mocha"; theme.style = "mocha";
@@ -41,7 +37,26 @@
terminal.toggleterm.lazygit.direction = "float"; terminal.toggleterm.lazygit.direction = "float";
terminal.toggleterm.lazygit.mappings.open = "<C-g>"; 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.nix-develop.enable = true;
utility.oil-nvim.enable = true; utility.oil-nvim.enable = true;
@@ -69,8 +84,12 @@
extensions = [ extensions = [
{ {
name = "fzf"; name = "fzf";
packages = [pkgs.vimPlugins.telescope-fzf-native-nvim]; 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 ]; grammars = with pkgs.vimPlugins.nvim-treesitter-parsers; [ python ];
}; };
lsp.enable = true;
languages = { languages = {
enableTreesitter = true;
enableFormat = true;
markdown = { markdown = {
enable = true; enable = true;
extensions = { extensions = {
@@ -100,10 +114,6 @@
yaml.enable = true; yaml.enable = true;
toml.enable = true; toml.enable = true;
nix = {
enable = true;
};
python = { python = {
enable = true; enable = true;
dap.enable = true; dap.enable = true;
@@ -142,7 +152,7 @@
} }
{ {
key = "<C-`>"; key = "<C-`>";
mode = ["n" "v" "t"]; mode = [ "n" "v" "t" ];
silent = false; silent = false;
action = "<cmd>:ToggleTerm<CR>"; action = "<cmd>:ToggleTerm<CR>";
} }
@@ -152,7 +162,15 @@
]; ];
}).neovim).overrideAttrs (old: { }).neovim).overrideAttrs (old: {
pname = "my-neovim"; 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; [ extraPackages = with pkgs; [
lazydocker lazydocker
self'.packages.shell-tools self'.packages.shell-tools
self'.packages.neovim-min
]; ];
}).wrapper; }).wrapper;
}; };