nixvim aditions
This commit is contained in:
parent
885d9f952b
commit
a31c5a79b6
7 changed files with 95 additions and 20 deletions
20
flake.lock
generated
20
flake.lock
generated
|
|
@ -591,28 +591,14 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_5": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1706191920,
|
|
||||||
"narHash": "sha256-eLihrZAPZX0R6RyM5fYAWeKVNuQPYjAkCUBr+JNvtdE=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "ae5c332cbb5827f6b1f02572496b141021de335f",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixos-unstable",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixvim": {
|
"nixvim": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-parts": "flake-parts_2",
|
"flake-parts": "flake-parts_2",
|
||||||
"home-manager": "home-manager_2",
|
"home-manager": "home-manager_2",
|
||||||
"nix-darwin": "nix-darwin",
|
"nix-darwin": "nix-darwin",
|
||||||
"nixpkgs": "nixpkgs_5",
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
"pre-commit-hooks": "pre-commit-hooks"
|
"pre-commit-hooks": "pre-commit-hooks"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.desktop.console.editor.nvim;
|
cfg = config.homeModules.console.editor.nvim;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
28
home/modules/console/editor/nvim/plugins/default.nix
Normal file
28
home/modules/console/editor/nvim/plugins/default.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./indent.nix
|
||||||
|
./telescope.nix
|
||||||
|
./lualine.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
options.homeModules.console.editor.nvim.plugins = {
|
||||||
|
indentBlankline = lib.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = false;
|
||||||
|
description = "Enable indent-blankline nvim plugin module";
|
||||||
|
};
|
||||||
|
lualine = lib.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = false;
|
||||||
|
description = "Enable lualine nvim plugin module";
|
||||||
|
};
|
||||||
|
telescope = lib.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = false;
|
||||||
|
description = "Enable telescope nvim plugin module";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
{ config, lib, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.homeModules.console.editor.nvim.plugins;
|
||||||
|
in
|
||||||
|
|
||||||
|
{
|
||||||
|
config = lib.mkIf cfg.indentBlankline {
|
||||||
|
programs.nixvim.plugins.indent-blankline = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -5,7 +5,7 @@ let
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
config = lib.mkif cfg.lualine {
|
config = lib.mkIf cfg.lualine {
|
||||||
programs.nixvim.plugins.lualine = {
|
programs.nixvim.plugins.lualine = {
|
||||||
enable = true;
|
enable = true;
|
||||||
theme = "base16";
|
theme = "base16";
|
||||||
|
|
|
||||||
41
home/modules/console/editor/nvim/plugins/telescope.nix
Normal file
41
home/modules/console/editor/nvim/plugins/telescope.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
||||||
|
{ config, lib, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.homeModules.console.editor.nvim.plugins;
|
||||||
|
in
|
||||||
|
|
||||||
|
{
|
||||||
|
config = lib.mkIf cfg.telescope {
|
||||||
|
programs.nixvim = {
|
||||||
|
plugins.telescope = {
|
||||||
|
enable = true;
|
||||||
|
extensions = {
|
||||||
|
fzf-native.enable = true;
|
||||||
|
frecency.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
keymaps = {
|
||||||
|
"<leader>ff" = "find_files";
|
||||||
|
"<leader>fg" = "live_grep";
|
||||||
|
"<leader>b" = "buffers";
|
||||||
|
"<leader>fh" = "help_tags";
|
||||||
|
"<leader>fd" = "diagnostics";
|
||||||
|
|
||||||
|
"<C-p>" = "git_files";
|
||||||
|
"<leader>p" = "oldfiles";
|
||||||
|
"<C-f>" = "live_grep";
|
||||||
|
};
|
||||||
|
|
||||||
|
keymapsSilent = true;
|
||||||
|
|
||||||
|
defaults = {
|
||||||
|
file_ignore_patterns = [
|
||||||
|
"^.git/"
|
||||||
|
"^data/"
|
||||||
|
];
|
||||||
|
set_env.COLORTERM = "truecolor";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -7,7 +7,14 @@
|
||||||
|
|
||||||
activeProfiles = ["base" "hyprland"];
|
activeProfiles = ["base" "hyprland"];
|
||||||
|
|
||||||
homeModules.console.editor.nvim.enable = true;
|
homeModules.console.editor.nvim = {
|
||||||
|
enable = true;
|
||||||
|
plugins = {
|
||||||
|
lualine = true;
|
||||||
|
telescope = true;
|
||||||
|
indentBlankline = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
monitors = [{
|
monitors = [{
|
||||||
name = "eDP-1";
|
name = "eDP-1";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue