Files
shed/modules/home/programs/nixvim/keymaps.nix

72 lines
1.4 KiB
Nix
Executable File

{
programs.nixvim = {
keymaps = [
{
action = "<cmd>ChatGPTEditWithInstructions<CR>";
key = "!egpt";
mode = "n";
}
{
action = "<cmd>ChatGPTCompleteCode<CR>";
key = "!cgpt";
mode = "n";
}
{
action = "<cmd>ChatGPT<CR>";
key = "!gpt";
mode = "n";
}
{
action = "<cmd>lua vim.lsp.buf.code_action()<CR>";
key = "!ca";
mode = "n";
}
{
action = "<cmd>Telescope<CR>";
key = "!t";
mode = "n";
}
{
action = "<cmd>lua vim.lsp.buf.format()<CR>";
key = "!fmt";
mode = "n";
}
{
action = "<cmd>lua vim.diagnostic.open_float()<CR>";
key = "!df";
mode = "n";
}
{
action = "<C-W>W";
key = "<S-Tab>";
mode = "n";
}
{
action = "<C-w>w";
key = "<Tab>";
mode = "n";
}
{
action = "<cmd>FloatermToggle shadeterm<CR>";
key = "<F2>";
mode = "n";
}
{
action = "<cmd>NvimTreeToggle<CR>";
key = "<F3>";
mode = "n";
}
{
action = "<cmd>FloatermToggle shadeterm<CR>";
key = "<F2>";
mode = "t";
}
{
action = "<cmd>COQnow<CR>";
key = "!cq";
mode = "n";
}
];
};
}