started neovim-min
This commit is contained in:
+36
-18
@@ -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;
|
||||||
@@ -70,7 +85,11 @@
|
|||||||
{
|
{
|
||||||
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;
|
||||||
@@ -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";
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user