Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 15 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,38 +57,24 @@ You can use Frostvim as a base configuration and extend it with your own plugins
};

outputs = { nixpkgs, nixvim, frostvim, ... }: {
# Import the default module and extend it
nixvimConfigurations.default = nixvim.lib.${system}.makeNixvimWithModule {
inherit (frostvim.nixvimModules) default;
# Override defaults or add custom plugins
blink.enable = true;
# Add a new plugin
plugins = {
todo-comments = {
enable = true;
settings = {
signs = true;
sign_priority = 8;
keywords = {
FIX = {
icon = " ";
color = "error";
alt = [ "FIXME" "BUG" "FIXIT" "ISSUE" ];
};
TODO = { icon = " "; color = "info"; };
HACK = { icon = " "; color = "warning"; };
WARN = { icon = " "; color = "warning"; alt = [ "WARNING" "XXX" ]; };
PERF = { icon = " "; alt = [ "OPTIM" "PERFORMANCE" "OPTIMIZE" ]; };
NOTE = { icon = " "; color = "hint"; alt = [ "INFO" ]; };
TEST = { icon = "⏲ "; color = "test"; alt = [ "TESTING" "PASSED" "FAILED" ]; };
};
};
};
};
};
};
}
```
then in your `home.nix`:
```nix
imports = [
inputs.nixvim.homeModules.nixvim
];
programs.nixvim = {
enable = true;
_module.args.inputs = inputs;
imports = [inputs.frostvim.nixvimModules.default];
plugins = {
flash.enable = true;
# other plugins configs/settings
};
};
```

### Updating Keymaps

Expand Down
12 changes: 5 additions & 7 deletions config/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
inputs,
config,
...
}: {
}:
{
imports = [
./keymaps.nix
./plugins/blink
Expand Down Expand Up @@ -51,10 +52,7 @@
opencode.enable = lib.mkDefault true;
snacks.enable = lib.mkDefault true;
lzn.enable = lib.mkDefault true;
presence.enable =
if !pkgs.stdenv.isDarwin
then lib.mkDefault true
else lib.mkDefault false;
presence.enable = if !pkgs.stdenv.isDarwin then lib.mkDefault true else lib.mkDefault false;
sitter.enable = lib.mkDefault true;
telekasten.enable = lib.mkDefault true;
trouble.enable = lib.mkDefault true;
Expand All @@ -66,8 +64,8 @@
src = pkgs.fetchFromGitHub {
owner = "neovim";
repo = "neovim";
rev = "caa9419355456e85f27006291abc6643d83f01a7";
hash = "sha256-dKkPsMAcfrQhJN7oSAYJpa61gQweF4uaSHpIq+uGJmQ=";
rev = "03d6cf7aae4a72c7221a4fb8ebb14a7c8603ba18";
hash = "sha256-RkQKSCqEsTxPc1i7RsDDbOCJObVdq7R9YJ94UrI1k8w=";
};
};
luaLoader.enable = false;
Expand Down
1 change: 1 addition & 0 deletions config/plugins/cmp/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
luasnip.enable = true;
cmp-omni.enable = true;
cmp-dap.enable = true;
dap.enable = true;
dap-go.enable = true;
dap-ui.enable = true;
cmp-nvim-lsp.enable = true;
Expand Down
42 changes: 21 additions & 21 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.