NVF #9
1 changed files with 26 additions and 12 deletions
|
|
@ -1,9 +1,18 @@
|
|||
{ config, pkgs, nixvim, ... }: {
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
nixvim,
|
||||
...
|
||||
}: {
|
||||
home.packages = with pkgs; [tree-sitter fd ripgrep];
|
||||
programs.nvf = {
|
||||
enable = true;
|
||||
settings = {
|
||||
vim = {
|
||||
autocomplete.nvim-cmp.enable = true;
|
||||
binds = {
|
||||
cheatsheet.enable = true;
|
||||
};
|
||||
dashboard.alpha = {
|
||||
enable = true;
|
||||
theme = "dashboard";
|
||||
|
|
@ -49,18 +58,23 @@
|
|||
mode = ["n"];
|
||||
}
|
||||
{
|
||||
key = "<leader>o";
|
||||
action = ":Obsidian<CR>";
|
||||
key = "<leader>ow";
|
||||
action = ":ObsidianWorkspace<CR>";
|
||||
mode = ["n"];
|
||||
}
|
||||
{
|
||||
key = "<leader>gg";
|
||||
action = ":LazyGit<CR>";
|
||||
key = "<leader>od";
|
||||
action = ":ObsidianDailies<CR>";
|
||||
mode = ["n"];
|
||||
}
|
||||
{
|
||||
key = "<leader>gl";
|
||||
action = ":LazyGitLog<CR>";
|
||||
key = "<leader>on";
|
||||
action = ":ObsidianNew<CR>";
|
||||
mode = ["n"];
|
||||
}
|
||||
{
|
||||
key = "<leader>oN";
|
||||
action = ":ObsidianNewFromTemplate<CR>";
|
||||
mode = ["n"];
|
||||
}
|
||||
];
|
||||
|
|
@ -108,6 +122,7 @@
|
|||
enable = true;
|
||||
setupOpts = {
|
||||
legacy_commands = true;
|
||||
ui.enable = false;
|
||||
completion.nvim-cmp = true;
|
||||
templates = {subdir = "Templates";};
|
||||
daily_notes = {
|
||||
|
|
@ -135,4 +150,3 @@
|
|||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue