Compare commits
2 commits
eae19b0c19
...
b54625d285
Author | SHA1 | Date | |
---|---|---|---|
b54625d285 | |||
33110b0465 |
7 changed files with 58 additions and 66 deletions
|
@ -18,7 +18,6 @@
|
|||
|
||||
# UI plugins
|
||||
./plugins/ui/lualine.nix
|
||||
./plugins/ui/neo-tree.nix
|
||||
./plugins/ui/web-devicons.nix
|
||||
./plugins/ui/whichkey.nix
|
||||
|
||||
|
@ -34,6 +33,7 @@
|
|||
# Utils
|
||||
./plugins/utils/markdown-preview.nix
|
||||
./plugins/utils/render-markdown.nix
|
||||
./plugins/utils/oil.nix
|
||||
./plugins/utils/telescope.nix
|
||||
./plugins/utils/todo-comments.nix
|
||||
./plugins/utils/vimtex.nix
|
||||
|
|
|
@ -11,6 +11,15 @@
|
|||
};
|
||||
}
|
||||
|
||||
{ # prefix: find
|
||||
mode = ["n"];
|
||||
key = "<leader>f";
|
||||
action = "<NOP>";
|
||||
options = {
|
||||
desc = "+find";
|
||||
};
|
||||
}
|
||||
|
||||
{ # focus window left
|
||||
mode = ["n"];
|
||||
key = "<C-Left>";
|
||||
|
|
|
@ -1,19 +1,15 @@
|
|||
{ ... }: {
|
||||
plugins.auto-session = {
|
||||
enable = true;
|
||||
settings = {
|
||||
pre_save_cmds = ["Neotree close"];
|
||||
post_restore_cmds = ["Neotree show"];
|
||||
};
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
mode = ["n"];
|
||||
key = "<leader>ss";
|
||||
key = "<leader>fs";
|
||||
action = ":SessionSearch<cr>";
|
||||
options = {
|
||||
desc = "Search sessions";
|
||||
desc = "Find sessions";
|
||||
silent = true;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -56,14 +56,14 @@
|
|||
keymaps = [
|
||||
{
|
||||
mode = "";
|
||||
key = "<leader>f";
|
||||
key = "<leader>F";
|
||||
action.__raw = ''
|
||||
function()
|
||||
require('conform').format { async = true, lsp_fallback = true }
|
||||
end
|
||||
'';
|
||||
options = {
|
||||
desc = "format_buffer";
|
||||
desc = "Format buffer";
|
||||
};
|
||||
}
|
||||
];
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
{...}: {
|
||||
plugins.neo-tree = {
|
||||
enable = true;
|
||||
eventHandlers = {
|
||||
neo_tree_window_after_open = ''
|
||||
function(_)
|
||||
vim.cmd("wincmd =")
|
||||
end
|
||||
'';
|
||||
};
|
||||
closeIfLastWindow = true;
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>e";
|
||||
action = "<cmd>Neotree<cr>";
|
||||
options.desc = "focus_neotree";
|
||||
}
|
||||
];
|
||||
}
|
16
config/plugins/utils/oil.nix
Normal file
16
config/plugins/utils/oil.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ ... }: {
|
||||
plugins.oil = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
mode = "n";
|
||||
key = "-";
|
||||
action = "<cmd>Oil<cr>";
|
||||
options = {
|
||||
desc = "Open parent directory";
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
|
@ -12,47 +12,40 @@
|
|||
|
||||
# Configure our telescope keymaps.
|
||||
keymaps = {
|
||||
"<leader>/" = {
|
||||
action = "live_grep";
|
||||
options = {
|
||||
desc = "live_grep";
|
||||
};
|
||||
};
|
||||
"<leader>:" = {
|
||||
action = "command_history";
|
||||
options = {
|
||||
desc = "command_history";
|
||||
};
|
||||
};
|
||||
|
||||
# Search
|
||||
"<leader>sb" = {
|
||||
action = "buffers";
|
||||
options = {
|
||||
desc = "Search open buffers";
|
||||
};
|
||||
};
|
||||
"<leader>sc" = {
|
||||
action = "commands";
|
||||
options = {
|
||||
desc = "Search Commands";
|
||||
};
|
||||
};
|
||||
"<leader>sf" = {
|
||||
# Find
|
||||
"<leader>ff" = {
|
||||
action = "find_files";
|
||||
options = {
|
||||
desc = "Search project files";
|
||||
desc = "Find project files";
|
||||
};
|
||||
};
|
||||
"<leader>fg" = {
|
||||
action = "live_grep";
|
||||
options = {
|
||||
desc = "Find pattern";
|
||||
};
|
||||
};
|
||||
"<leader>fb" = {
|
||||
action = "buffers";
|
||||
options = {
|
||||
desc = "Find open buffers";
|
||||
};
|
||||
};
|
||||
"<leader>fh" = {
|
||||
action = "help_tags";
|
||||
options = {
|
||||
desc = "Find help tags";
|
||||
};
|
||||
};
|
||||
"<leader>fc" = {
|
||||
action = "commands";
|
||||
options = {
|
||||
desc = "Find commands";
|
||||
};
|
||||
};
|
||||
|
||||
# List
|
||||
# Git List
|
||||
"<leader>glc" = {
|
||||
action = "git_bcommits";
|
||||
options = {
|
||||
desc = "List git commits";
|
||||
};
|
||||
};
|
||||
"<leader>glC" = {
|
||||
action = "git_commits";
|
||||
options = {
|
||||
desc = "List git commits";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue