nix-config/home/modules/cli/nixvim/default.nix
lightly-toasted 934f2ed339 feat(nixvim): add opencode plugin
- Added opencode plugin
- Added keymaps for opencode actions (<leader>oa, <leader>ox, <leader>og)
- Included lsof package for opencode.nvim to function
2025-11-01 02:01:51 +09:00

27 lines
528 B
Nix

{
programs.nixvim = {
enable = true;
defaultEditor = true;
colorschemes.moonfly = {
enable = true;
};
opts = {
number = true;
relativenumber = true;
expandtab = true;
shiftwidth = 2;
tabstop = 2;
softtabstop = 2;
};
};
imports = [
./keymaps.nix
] ++ (
let
pluginsPath = ./plugins;
pluginFiles = builtins.attrNames (builtins.readDir pluginsPath);
in
map (module: pluginsPath + ("/" + module)) pluginFiles
);
}