mirror of
https://github.com/youwen5/neovim-flake.git
synced 2024-11-25 03:03:49 -08:00
Compare commits
4 commits
570fddee2d
...
6ab1d3adfb
Author | SHA1 | Date | |
---|---|---|---|
6ab1d3adfb | |||
364788b99e | |||
09d61e726a | |||
5336f0bcc6 |
2 changed files with 35 additions and 7 deletions
|
@ -37,7 +37,17 @@
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
action = ":CellularAutomaton make_it_rain<CR>";
|
action = ":CellularAutomaton make_it_rain<CR>";
|
||||||
key = "<leader>kys";
|
key = "<leader>mr";
|
||||||
|
options = {
|
||||||
|
silent = true;
|
||||||
|
noremap = true;
|
||||||
|
desc = "A mysterious surprise!";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
action = ":CellularAutomaton game_of_life<CR>";
|
||||||
|
key = "<leader>bruh";
|
||||||
options = {
|
options = {
|
||||||
silent = true;
|
silent = true;
|
||||||
noremap = true;
|
noremap = true;
|
||||||
|
@ -64,6 +74,24 @@
|
||||||
desc = "Search previous and center screen, reopening folds";
|
desc = "Search previous and center screen, reopening folds";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
key = "<C-k>";
|
||||||
|
action = ":cnext<CR>zz";
|
||||||
|
options = {
|
||||||
|
noremap = true;
|
||||||
|
desc = "Go to next diagnostic";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
key = "<C-j>";
|
||||||
|
action = ":cprev<CR>zz";
|
||||||
|
options = {
|
||||||
|
noremap = true;
|
||||||
|
desc = "Go to previous diagnostic";
|
||||||
|
};
|
||||||
|
}
|
||||||
# The greatest remap of all time -- the primeagen
|
# The greatest remap of all time -- the primeagen
|
||||||
{
|
{
|
||||||
mode = [
|
mode = [
|
||||||
|
@ -369,7 +397,7 @@
|
||||||
__raw = ''
|
__raw = ''
|
||||||
function()
|
function()
|
||||||
if vim.wo.diff then
|
if vim.wo.diff then
|
||||||
vim.cmd.normal({']c', bang = true})
|
vim.cmd.normal({']g', bang = true})
|
||||||
else
|
else
|
||||||
require('gitsigns').nav_hunk('next')
|
require('gitsigns').nav_hunk('next')
|
||||||
end
|
end
|
||||||
|
@ -389,7 +417,7 @@
|
||||||
__raw = ''
|
__raw = ''
|
||||||
function()
|
function()
|
||||||
if vim.wo.diff then
|
if vim.wo.diff then
|
||||||
vim.cmd.normal({'[c', bang = true})
|
vim.cmd.normal({'[g', bang = true})
|
||||||
else
|
else
|
||||||
require('gitsigns').nav_hunk('prev')
|
require('gitsigns').nav_hunk('prev')
|
||||||
end
|
end
|
||||||
|
|
|
@ -82,10 +82,10 @@
|
||||||
"4" = "<Leader>h4";
|
"4" = "<Leader>h4";
|
||||||
};
|
};
|
||||||
navFile = {
|
navFile = {
|
||||||
"1" = "<C-h>";
|
"1" = "<leader>j";
|
||||||
"2" = "<C-j>";
|
"2" = "<leader>k";
|
||||||
"3" = "<C-k>";
|
"3" = "<leader>l";
|
||||||
"4" = "<C-l>";
|
"4" = "<leader>;";
|
||||||
"5" = "<Leader>1";
|
"5" = "<Leader>1";
|
||||||
"6" = "<Leader>2";
|
"6" = "<Leader>2";
|
||||||
"7" = "<Leader>3";
|
"7" = "<Leader>3";
|
||||||
|
|
Loading…
Reference in a new issue