This commit is contained in:
Hadi
2024-03-12 02:55:45 +01:00
parent 0efb552856
commit 55a602b481
20 changed files with 250 additions and 159 deletions

5
home/nvim/copilot.nix Normal file
View File

@@ -0,0 +1,5 @@
{
programs.nixvim.plugins.copilot-vim = {
enable = true;
};
}

View File

@@ -16,6 +16,9 @@
./lsp.nix
./treesitter.nix
./toggleterm.nix
./copilot.nix
./obsidian.nix
./whichkey.nix
];
programs.nixvim = {
@@ -35,6 +38,31 @@
action = "<CMD>lua vim.lsp.buf.format()<CR>";
}
{
key = "<leader>ot";
action = "<cmd>lua require('obsidian').util.toggle_checkbox()<cr>";
}
{
key = "<leader>oo";
action = "<cmd>ObsidianQuickSwitch<cr>";
}
{
key = "<leader>on";
action = "<cmd>ObsidianNew<cr>";
}
{
key = "<leader>of";
action = "<cmd>ObsidianSearch<cr>";
}
{
key = "<leader>oi";
action = "<cmd>ObsidianPasteImg<cr>";
}
# Terminal Mappings
{
mode = "t";

View File

@@ -1,6 +1,6 @@
{
programs.nixvim.plugins.gitsigns = {
enable = true;
currentLineBlame = true;
currentLineBlame = false;
};
}

7
home/nvim/obsidian.nix Normal file
View File

@@ -0,0 +1,7 @@
{
programs.nixvim.plugins.obsidian = {
enable = true;
dir = "~/Nextcloud/obsidian";
disableFrontmatter = true;
};
}

View File

@@ -32,5 +32,6 @@
swapfile = false;
undofile = true;
conceallevel = 2;
};
}

3
home/nvim/whichkey.nix Normal file
View File

@@ -0,0 +1,3 @@
{
programs.nixvim.plugins.which-key.enable=true;
}