Compare commits

..

16 Commits

Author SHA1 Message Date
kenji 4fd264f24f fix: update flake inputs to fix nodePackages deprecation 2026-05-17 19:01:43 -05:00
kenji ddb728dae4 add: bash setup 2025-12-27 18:36:21 -06:00
kenji c92c7fde64 removed auto_install 2025-12-24 13:30:58 -06:00
kenji cd9d985e9f removed ensure_installed for ts 2025-12-24 13:26:32 -06:00
kenji 358abc0fea fixed problem regarding treesitter and harpoon 2025-12-24 13:24:30 -06:00
kenji 71f2106966 added inputs for nixpkgs that nixvim follows 2025-12-24 13:24:14 -06:00
kenji 76c63eec0c updated nixpkgs and nixvim 2025-12-24 13:24:04 -06:00
kenji e3fe5d8a18 dashboard set for future 2025-12-24 13:23:48 -06:00
kenji 0a6805518a updated rust-overlay 2025-12-24 13:15:02 -06:00
kenji 0231245a5b removed ansiblels 2025-11-24 14:17:43 -06:00
lsoriano-mcm 24fdf605ce renamed var 2025-08-07 14:28:35 -05:00
lsoriano-mcm b04c92cec6 added baseNvim, and use it as default 2025-08-07 11:42:24 -05:00
lsoriano-mcm 13cd454fb3 added beautysh 2025-07-05 11:51:32 -05:00
lsoriano-mcm af883ec5eb ensures installation of TS 2025-07-05 11:25:58 -05:00
lsoriano-mcm 16fa8eb258 FLAKE.NIX UPDATE 2025-07-05 10:31:13 -05:00
lsoriano-mcm f7d90f69fa added bash 2025-07-05 09:23:42 -05:00
7 changed files with 274 additions and 334 deletions
+176 -174
View File
@@ -2,180 +2,182 @@
plugins = { plugins = {
alpha = { alpha = {
enable = true; enable = true;
layout = [ settings = {
{ layout = [
type = "padding"; {
val = 2; type = "padding";
} val = 2;
{ }
type = "text"; {
val = [ type = "text";
" " val = [
" " " "
" " " "
" " " "
" " " "
" " " "
]; " "
opts = { ];
position = "center"; opts = {
hl = "Type"; position = "center";
}; hl = "Type";
} };
{ }
type = "text"; {
val = [" "]; type = "text";
} val = [" "];
{ }
type = "padding"; {
val = 1; type = "padding";
} val = 1;
{ }
type = "text"; {
val = [ type = "text";
"" val = [
" ...better than most IDEs! " ""
"" " ...better than most IDEs! "
]; ""
opts = { ];
position = "center"; opts = {
}; position = "center";
} };
{ }
type = "padding"; {
val = 4; type = "padding";
} val = 4;
{ }
type = "group"; {
val = [ type = "group";
{ val = [
type = "button"; {
val = " New File "; type = "button";
on_press.__raw = "function() vim.cmd[[ene]] end"; val = " New File ";
opts = { on_press.__raw = "function() vim.cmd[[ene]] end";
shortcut = "n"; opts = {
keymap = [ shortcut = "n";
"n" keymap = [
"n" "n"
"<cmd>ene<CR>" "n"
{ "<cmd>ene<CR>"
noremap = true; {
silent = true; noremap = true;
nowait = true; silent = true;
} nowait = true;
]; }
position = "center"; ];
width = 50; position = "center";
align_shortcut = "right"; width = 50;
hl_shortcut = "Keyword"; align_shortcut = "right";
}; hl_shortcut = "Keyword";
} };
{ }
type = "padding"; {
val = 1; type = "padding";
} val = 1;
{ }
type = "button"; {
val = " Find File "; type = "button";
opts = { val = " Find File ";
shortcut = "f"; opts = {
keymap = [ shortcut = "f";
"n" keymap = [
"f" "n"
"<cmd>lua require('fzf-lua').files({ cwd = vim.loop.cwd() })<CR>" "f"
{ "<cmd>lua require('fzf-lua').files({ cwd = vim.loop.cwd() })<CR>"
noremap = true; {
silent = true; noremap = true;
nowait = true; silent = true;
} nowait = true;
]; }
position = "center"; ];
width = 50; position = "center";
align_shortcut = "right"; width = 50;
hl_shortcut = "Keyword"; align_shortcut = "right";
}; hl_shortcut = "Keyword";
} };
{ }
type = "padding"; {
val = 1; type = "padding";
} val = 1;
{ }
type = "button"; {
val = " Recent Files "; type = "button";
on_press.__raw = "function() require('telescope.builtin').oldfiles() end"; val = " Recent Files ";
opts = { on_press.__raw = "function() require('telescope.builtin').oldfiles() end";
shortcut = "r"; opts = {
keymap = [ shortcut = "r";
"n" keymap = [
"r" "n"
"<cmd>lua require('fzf-lua').oldfiles({ cwd = vim.loop.cwd() })<CR>" "r"
{ "<cmd>lua require('fzf-lua').oldfiles({ cwd = vim.loop.cwd() })<CR>"
noremap = true; {
silent = true; noremap = true;
nowait = true; silent = true;
} nowait = true;
]; }
position = "center"; ];
width = 50; position = "center";
align_shortcut = "right"; width = 50;
hl_shortcut = "Keyword"; align_shortcut = "right";
}; hl_shortcut = "Keyword";
} };
{ }
type = "padding"; {
val = 1; type = "padding";
} val = 1;
{ }
type = "button"; {
val = " Find Text "; type = "button";
on_press.__raw = "function() require('telescope.builtin').live_grep() end"; val = " Find Text ";
opts = { on_press.__raw = "function() require('telescope.builtin').live_grep() end";
shortcut = "g"; opts = {
keymap = [ shortcut = "g";
"n" keymap = [
"g" "n"
"<cmd>lua require('fzf-lua').live_grep()<CR>" "g"
{ "<cmd>lua require('fzf-lua').live_grep()<CR>"
noremap = true; {
silent = true; noremap = true;
nowait = true; silent = true;
} nowait = true;
]; }
position = "center"; ];
width = 50; position = "center";
align_shortcut = "right"; width = 50;
hl_shortcut = "Keyword"; align_shortcut = "right";
}; hl_shortcut = "Keyword";
} };
{ }
type = "padding"; {
val = 1; type = "padding";
} val = 1;
{ }
type = "button"; {
val = " Quit Neovim "; type = "button";
on_press.__raw = "function() vim.cmd[[qa]] end"; val = " Quit Neovim ";
opts = { on_press.__raw = "function() vim.cmd[[qa]] end";
shortcut = "q"; opts = {
keymap = [ shortcut = "q";
"n" keymap = [
"q" "n"
"<cmd>qa<CR>" "q"
{ "<cmd>qa<CR>"
noremap = true; {
silent = true; noremap = true;
nowait = true; silent = true;
} nowait = true;
]; }
position = "center"; ];
width = 50; position = "center";
align_shortcut = "right"; width = 50;
hl_shortcut = "Keyword"; align_shortcut = "right";
}; hl_shortcut = "Keyword";
} };
]; }
} ];
]; }
];
};
}; };
}; };
} }
+3 -2
View File
@@ -6,12 +6,13 @@
formatters_by_ft = { formatters_by_ft = {
terraform = ["tofu_fmt"]; terraform = ["tofu_fmt"];
tf = ["tofu_fmt"]; tf = ["tofu_fmt"];
sh = ["beautysh"]; sh = ["shfmt"];
bash = ["shfmt"];
}; };
}; };
}; };
lsp.servers = { lsp.servers = {
ansiblels.enable = true; ansiblels.enable = false; # they stopped updating it...
dockerls.enable = true; dockerls.enable = true;
helm_ls.enable = true; helm_ls.enable = true;
nginx_language_server.enable = true; nginx_language_server.enable = true;
-1
View File
@@ -30,7 +30,6 @@ in {
]; ];
extraConfigLua = '' extraConfigLua = ''
require("telescope").load_extension('harpoon')
require("notify").setup({ require("notify").setup({
background_colour = "#000000", background_colour = "#000000",
+20 -12
View File
@@ -33,17 +33,14 @@
watch_gitdir = {follow_files = true;}; watch_gitdir = {follow_files = true;};
}; };
}; };
harpoon = { harpoon = {
enable = true; enable = false;
settings = { settings = {
saveOnToggle = true; save_on_toggle = true;
saveOnChange = true; save_on_change = true;
enterOnSendcmd = false; enter_on_sendcmd = false;
markBranch = true;
}; };
}; };
hop.enable = true; hop.enable = true;
illuminate.enable = true; illuminate.enable = true;
image.enable = true; image.enable = true;
@@ -145,14 +142,25 @@
}; };
render-markdown.enable = true; render-markdown.enable = true;
todo-comments.enable = true; todo-comments.enable = true;
treesitter = { treesitter = {
enable = true; enable = true;
folding.enable = false; # Fixes the folding deprecation warning
folding = false; settings = {
settings.indent.enable = true; indent.enable = true;
auto_install = false; # Disable runtime installation
# ensure_installed = [
# "git_config"
# "git_rebase"
# "gitattributes"
# "gitcommit"
# "gitignore"
# "bash"
# "python"
# "lua"
# "nix"
# ];
};
}; };
vim-surround.enable = true; vim-surround.enable = true;
web-devicons.enable = true; web-devicons.enable = true;
}; };
Generated
+28 -130
View File
@@ -5,11 +5,11 @@
"nixpkgs-lib": "nixpkgs-lib" "nixpkgs-lib": "nixpkgs-lib"
}, },
"locked": { "locked": {
"lastModified": 1751413152, "lastModified": 1738453229,
"narHash": "sha256-Tyw1RjYEsp5scoigs1384gIg6e0GoBVjms4aXFfRssQ=", "narHash": "sha256-7H9XgNiGLKN1G1CgRh0vUL4AheZSYzPm+zmZ7vxbJdo=",
"owner": "hercules-ci", "owner": "hercules-ci",
"repo": "flake-parts", "repo": "flake-parts",
"rev": "77826244401ea9de6e3bac47c2db46005e1f30b5", "rev": "32ea77a06711b758da0ad9bd6a844c5740a87abd",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -26,11 +26,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1749398372, "lastModified": 1778716662,
"narHash": "sha256-tYBdgS56eXYaWVW3fsnPQ/nFlgWi/Z2Ymhyu21zVM98=", "narHash": "sha256-m1Yf0wZ8j1OHjTc2UwHwyQRSnNeSgLJOd7q5Y45hzi4=",
"owner": "hercules-ci", "owner": "hercules-ci",
"repo": "flake-parts", "repo": "flake-parts",
"rev": "9305fe4e5c2a6fcf5ba6a3ff155720fbe4076569", "rev": "f7c1a2d347e4c52d5fb8d10cb4d94b5884e546fb",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -39,59 +39,13 @@
"type": "github" "type": "github"
} }
}, },
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"ixx": {
"inputs": {
"flake-utils": [
"nixvim",
"nuschtosSearch",
"flake-utils"
],
"nixpkgs": [
"nixvim",
"nuschtosSearch",
"nixpkgs"
]
},
"locked": {
"lastModified": 1748294338,
"narHash": "sha256-FVO01jdmUNArzBS7NmaktLdGA5qA3lUMJ4B7a05Iynw=",
"owner": "NuschtOS",
"repo": "ixx",
"rev": "cc5f390f7caf265461d4aab37e98d2292ebbdb85",
"type": "github"
},
"original": {
"owner": "NuschtOS",
"ref": "v0.0.8",
"repo": "ixx",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1751271578, "lastModified": 1778869304,
"narHash": "sha256-P/SQmKDu06x8yv7i0s8bvnnuJYkxVGBWLWHaU+tt4YY=", "narHash": "sha256-30sZNZoA1cqF5JNO9fVX+wgiQYjB7HJqqJ4ztCDeBZE=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "3016b4b15d13f3089db8a41ef937b13a9e33a8df", "rev": "d233902339c02a9c334e7e593de68855ad26c4cb",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -103,36 +57,17 @@
}, },
"nixpkgs-lib": { "nixpkgs-lib": {
"locked": { "locked": {
"lastModified": 1751159883, "lastModified": 1738452942,
"narHash": "sha256-urW/Ylk9FIfvXfliA1ywh75yszAbiTEVgpPeinFyVZo=", "narHash": "sha256-vJzFZGaCpnmo7I6i416HaBLpC+hvcURh/BQwROcGIp8=",
"owner": "nix-community", "type": "tarball",
"repo": "nixpkgs.lib", "url": "https://github.com/NixOS/nixpkgs/archive/072a6db25e947df2f31aab9eccd0ab75d5b2da11.tar.gz"
"rev": "14a40a1d7fb9afa4739275ac642ed7301a9ba1ab",
"type": "github"
}, },
"original": { "original": {
"owner": "nix-community", "type": "tarball",
"repo": "nixpkgs.lib", "url": "https://github.com/NixOS/nixpkgs/archive/072a6db25e947df2f31aab9eccd0ab75d5b2da11.tar.gz"
"type": "github"
} }
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": {
"lastModified": 1750811787,
"narHash": "sha256-rD/978c35JXz6JLAzciTIOCMenPumF6zrQOj4rVZeHE=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "992f916556fcfaa94451ebc7fc6e396134bbf5b1",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1744536153, "lastModified": 1744536153,
"narHash": "sha256-awS2zRgF4uTwrOKwwiJcByDzDOdo3Q1rPZbiHQg/N38=", "narHash": "sha256-awS2zRgF4uTwrOKwwiJcByDzDOdo3Q1rPZbiHQg/N38=",
@@ -151,44 +86,22 @@
"nixvim": { "nixvim": {
"inputs": { "inputs": {
"flake-parts": "flake-parts_2", "flake-parts": "flake-parts_2",
"nixpkgs": "nixpkgs_2",
"nuschtosSearch": "nuschtosSearch",
"systems": "systems_2"
},
"locked": {
"lastModified": 1751492444,
"narHash": "sha256-26NgRXwhNM2x4hrok0C3CqSf2v0vi9byONNON5PzbHQ=",
"owner": "nix-community",
"repo": "nixvim",
"rev": "239d331bb48673dfd00d7187654892471cd60d44",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixvim",
"type": "github"
}
},
"nuschtosSearch": {
"inputs": {
"flake-utils": "flake-utils",
"ixx": "ixx",
"nixpkgs": [ "nixpkgs": [
"nixvim",
"nixpkgs" "nixpkgs"
] ],
"systems": "systems"
}, },
"locked": { "locked": {
"lastModified": 1749730855, "lastModified": 1779023681,
"narHash": "sha256-L3x2nSlFkXkM6tQPLJP3oCBMIsRifhIDPMQQdHO5xWo=", "narHash": "sha256-K7RLGyiK3J6wHr/JDxXdlGF0+0DEsdBf1w9mXjSyL8I=",
"owner": "NuschtOS", "owner": "nix-community",
"repo": "search", "repo": "nixvim",
"rev": "8dfe5879dd009ff4742b668d9c699bc4b9761742", "rev": "0d05726bfb060f6559f6d64c1d427f3663dba178",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NuschtOS", "owner": "nix-community",
"repo": "search", "repo": "nixvim",
"type": "github" "type": "github"
} }
}, },
@@ -202,14 +115,14 @@
}, },
"rust-overlay": { "rust-overlay": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs_3" "nixpkgs": "nixpkgs_2"
}, },
"locked": { "locked": {
"lastModified": 1751683029, "lastModified": 1766544144,
"narHash": "sha256-dYO5X5jK8bpQOeRAo8R5aUt6M/+Ji1cZgstZI7SQ2IA=", "narHash": "sha256-5ppfEyZqX6FMluZHty7Dvw4xN10vLq1yQosp7dGG/28=",
"owner": "oxalica", "owner": "oxalica",
"repo": "rust-overlay", "repo": "rust-overlay",
"rev": "9e5e62a33a929a67a5427fb7324a6f583dced0b2", "rev": "5359a4fdc3fa9baa2edcf49758d404dfeeca7743",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -232,21 +145,6 @@
"repo": "default", "repo": "default",
"type": "github" "type": "github"
} }
},
"systems_2": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",
+40 -15
View File
@@ -2,7 +2,10 @@
description = "A nixvim configuration"; description = "A nixvim configuration";
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixvim.url = "github:nix-community/nixvim"; nixvim = {
url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-parts.url = "github:hercules-ci/flake-parts"; flake-parts.url = "github:hercules-ci/flake-parts";
rust-overlay.url = "github:oxalica/rust-overlay"; rust-overlay.url = "github:oxalica/rust-overlay";
}; };
@@ -30,11 +33,42 @@
overlays = [(import rust-overlay)]; overlays = [(import rust-overlay)];
nixvimLib = nixvim.lib.${system}; nixvimLib = nixvim.lib.${system};
nixvim' = nixvim.legacyPackages.${system}; nixvim' = nixvim.legacyPackages.${system};
pkgs = import inputs.nixpkgs {
inherit system overlays;
config.allowUnfree = true;
};
deps = with pkgs; [
sops
lazygit
nerd-fonts.jetbrains-mono
rust-bin.stable.latest.default # From rust-overlay
ansible-lint
beautysh
shellcheck
shfmt
];
fullNixvimModule = {
inherit pkgs;
module = {pkgs, ...}: {
imports = [
./config
./config/rust
./config/csharp
./config/golang
./config/python
./config/javascript
./config/iac
];
extraPackages = deps;
};
extraSpecialArgs = specialArgs; # Keep specialArgs for self-reference
};
baseNixvimModule = { baseNixvimModule = {
inherit pkgs; inherit pkgs;
module = {pkgs, ...}: { module = {pkgs, ...}: {
imports = [./config]; imports = [./config];
extraPackages = with pkgs; [sops lazygit nerd-fonts.jetbrains-mono]; extraPackages = deps;
}; };
extraSpecialArgs = specialArgs; extraSpecialArgs = specialArgs;
}; };
@@ -107,10 +141,8 @@
}; };
extraSpecialArgs = {}; extraSpecialArgs = {};
}; };
pkgs = import inputs.nixpkgs {
inherit system overlays; fullNvim = nixvim'.makeNixvimWithModule fullNixvimModule;
config.allowUnfree = true;
};
baseNvim = nixvim'.makeNixvimWithModule baseNixvimModule; baseNvim = nixvim'.makeNixvimWithModule baseNixvimModule;
rustNvim = nixvim'.makeNixvimWithModule rustNixvimModule; rustNvim = nixvim'.makeNixvimWithModule rustNixvimModule;
csharpNvim = nixvim'.makeNixvimWithModule csharpNixvimModule; csharpNvim = nixvim'.makeNixvimWithModule csharpNixvimModule;
@@ -120,23 +152,16 @@
iacNvim = nixvim'.makeNixvimWithModule iacNixvimModule; iacNvim = nixvim'.makeNixvimWithModule iacNixvimModule;
in { in {
checks = { checks = {
# Run `nix flake check .` to verify that your config is not broken
default = nixvimLib.check.mkTestDerivationFromNixvimModule baseNixvimModule; default = nixvimLib.check.mkTestDerivationFromNixvimModule baseNixvimModule;
}; };
packages = { packages = {
# Lets you run `nix run .` to start nixvim
default = baseNvim; default = baseNvim;
# Lets you run `nix run .#rust` to start nixvim with Rust configuration full = fullNvim;
rust = rustNvim; rust = rustNvim;
# Lets you run `nix run .#csharp` to start nixvim with C# configuration
csharp = csharpNvim; csharp = csharpNvim;
# Lets you run `nix run .#golang` to start nixvim with Go configuration
golang = goNvim; golang = goNvim;
# Lets you run `nix run .#python` to start nixvim with Python configuration
python = pythonNvim; python = pythonNvim;
# Lets you run `nix run .#javascript` to start nixvim with JS/TS configuration javascript = javascriptNvim; # This should be javascriptNvim not javascriptNixvimModule
javascript = javascriptNvim;
# Lets you run `nix run .#javascript` to start nixvim with IaC configuration
iac = iacNvim; iac = iacNvim;
}; };
}; };
+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
function hello() {
echo "Hello World
}
hello