This commit is contained in:
Hadi
2024-06-27 09:20:44 +00:00
parent 2972b4238c
commit c8c81e20ae
8 changed files with 40 additions and 8 deletions

View File

@@ -17,7 +17,6 @@
./plugins/copilot.nix
./plugins/whichkey.nix
./plugins/alpha.nix
./plugins/keymaps.nix
./plugins/comment.nix
./plugins/oil.nix
./plugins/trouble.nix
@@ -26,7 +25,10 @@
./plugins/obsidian.nix
./plugins/image.nix
./plugins/ltex.nix
./plugins/flash.nix
./plugins/zen-mode.nix
./options.nix
./colorscheme.nix
./keymaps.nix
];
}

View File

@@ -3,45 +3,54 @@
{
key = "<leader>e";
action = "<CMD>Neotree toggle<CR>";
options.desc = "Neotree Toggle";
}
{
key = "<space>fm";
action = "<CMD>lua vim.lsp.buf.format()<CR>";
options.desc = "LSP Format";
}
{
key = "<leader>ot";
action = "<cmd>lua require('obsidian').util.toggle_checkbox()<cr>";
options.desc = "Toggle Checkbox";
}
{
key = "<leader>oo";
action = "<cmd>ObsidianQuickSwitch<cr>";
options.desc = "Quick Switch";
}
{
key = "<leader>on";
action = "<cmd>ObsidianNew<cr>";
options.desc = "New";
}
{
key = "<leader>of";
action = "<cmd>ObsidianSearch<cr>";
options.desc = "Search";
}
{
key = "<leader>oi";
action = "<cmd>ObsidianPasteImg<cr>";
options.desc = "Paste Image";
}
{
key = "<leader>E";
action = "<cmd>Oil<cr>";
options.desc = "Oil";
}
{
key = "<leader>t";
action = "<cmd>TroubleToggle<cr>";
options.desc = "Trouble";
}
{

View File

@@ -82,6 +82,21 @@
hl = "AlphaTextColor";
};
}
{
type = "button";
val = " Keybindings";
on_press.__raw =
"function() vim.cmd[[e ${config.var.configDirectory}/docs/KEYBINDINGS.md]] end";
opts = {
shortcut = "nc";
position = "center";
cursor = 3;
width = 50;
align_shortcut = "right";
hl_shortcut = "AlphaShortcutColor";
hl = "AlphaTextColor";
};
}
{
type = "button";
val = " Recently used";

View File

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

View File

@@ -11,6 +11,7 @@
tailwindcss.enable = true;
html.enable = true;
svelte.enable = true;
marksman.enable = true;
ltex = {
enable = true;
settings = {

View File

@@ -0,0 +1 @@
{ programs.nixvim.plugins.zen-mode = { enable = true; }; }

View File

@@ -124,7 +124,14 @@
tooltip = false;
on-click = "powermenu";
};
# "custom/caffeine": {
# "format": "{}",
# "max-length": 5,
# "interval": 10,
# "exec": "caffeine-status-icon",
# "exec-if": "pgrep spotify",
# "return-type": ""
#}
backlight = {
device = "nvidia_0";
format = "{icon}";