mirror of
https://github.com/youwen5/neovim-flake.git
synced 2024-11-28 12:13:51 -08:00
feat: add some keymaps
- hoogle integration - codelens key - close window and buffer
This commit is contained in:
parent
52fc566b71
commit
df490feffb
2 changed files with 29 additions and 0 deletions
|
@ -80,6 +80,15 @@
|
|||
desc = "Close current window";
|
||||
};
|
||||
}
|
||||
{
|
||||
action = "<cmd>Bdelete!<CR><cmd>close<CR>";
|
||||
key = "<Leader>wk";
|
||||
options = {
|
||||
silent = true;
|
||||
noremap = true;
|
||||
desc = "Close current window, along with the buffer open inside.";
|
||||
};
|
||||
}
|
||||
{
|
||||
action = "<cmd>Telescope find_files<CR>";
|
||||
key = "<Leader>ff";
|
||||
|
@ -311,6 +320,7 @@
|
|||
action = ":Telescope yank_history<CR>";
|
||||
key = "<Leader>p";
|
||||
mode = "n";
|
||||
options.desc = "Look through yank history with telescope.";
|
||||
}
|
||||
{
|
||||
action = '':lua require("yazi").yazi()<CR>'';
|
||||
|
@ -348,6 +358,24 @@
|
|||
silent = true;
|
||||
};
|
||||
}
|
||||
{
|
||||
action = '':lua vim.lsp.codelens.run()'';
|
||||
key = "<Leader>cl";
|
||||
options = {
|
||||
desc = "Run codelens";
|
||||
noremap = true;
|
||||
silent = true;
|
||||
};
|
||||
}
|
||||
{
|
||||
action = '':Telescope ht hoogle_signature<CR>'';
|
||||
key = "<Leader>fg";
|
||||
options = {
|
||||
desc = "Search hoogle for under cursor";
|
||||
noremap = true;
|
||||
silent = true;
|
||||
};
|
||||
}
|
||||
# {
|
||||
# action = ":Yazi<CR>";
|
||||
# key = "<Leader>mf";
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
{
|
||||
extraConfigLua = ''
|
||||
require("telescope").load_extension("yank_history")
|
||||
require("telescope").load_extension("ht")
|
||||
vim.diagnostic.config({ virtual_lines = false });
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue