Compare commits
2 commits
d612990dca
...
f7832e1d5b
Author | SHA1 | Date | |
---|---|---|---|
f7832e1d5b | |||
a781b34d10 |
3 changed files with 64 additions and 11 deletions
|
@ -20,5 +20,20 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
globals.mapleader = " ";
|
globals.mapleader = " ";
|
||||||
|
|
||||||
|
autoCmd = [
|
||||||
|
{
|
||||||
|
callback = ''
|
||||||
|
function(args)
|
||||||
|
require("conform").format({ bufnr = args.buf })
|
||||||
|
end
|
||||||
|
'';
|
||||||
|
|
||||||
|
event = ["BufWritePre"];
|
||||||
|
pattern = [
|
||||||
|
"*"
|
||||||
|
];
|
||||||
|
desc = "autoformatting on save";
|
||||||
|
}
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,12 +14,41 @@
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
action = "<cmd>BufferNext<cr>";
|
action = "<cmd>BufferNext<cr>";
|
||||||
key = "<leader><tab><tab>";
|
key = "<S-h>";
|
||||||
options = {
|
options = {
|
||||||
desc = "Next buffer";
|
desc = "Next buffer";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
action = "<cmd>BufferPrevious<cr>";
|
||||||
|
key = "<S-l>";
|
||||||
|
options = {
|
||||||
|
desc = "Previous buffer";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
action = "<cmd>BufferMovePrevious";
|
||||||
|
key = "<Shift><Ctrl>H";
|
||||||
|
options = {
|
||||||
|
desc = "Move buffer to left";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
action = "<cmd>BufferMoveNext";
|
||||||
|
key = "<Shift><Ctrl>L";
|
||||||
|
options = {
|
||||||
|
desc = "Move buffer to right";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
action = "<cmd>BufferClose<cr>";
|
action = "<cmd>BufferClose<cr>";
|
||||||
|
@ -39,13 +68,13 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
action = "<cmd>LazyGit<cr>";
|
action = "<cmd>LazyGit<cr>";
|
||||||
key = "<leader>gg";
|
key = "<leader>gg";
|
||||||
options = {
|
options = {
|
||||||
desc = "Open lazygit";
|
desc = "Open lazygit";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
plugins.fzf-lua.keymaps = {
|
plugins.fzf-lua.keymaps = {
|
||||||
|
|
|
@ -32,6 +32,15 @@
|
||||||
|
|
||||||
conform-nvim = {
|
conform-nvim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
settings.formatters_by_ft = {
|
||||||
|
rust = ["rustfmt"];
|
||||||
|
lua = ["stylua"];
|
||||||
|
javascript = {
|
||||||
|
__unkeyed-1 = "prettierd";
|
||||||
|
__unkeyed-2 = "prettier";
|
||||||
|
stop_after_first = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
markdown-preview = {
|
markdown-preview = {
|
||||||
|
@ -66,7 +75,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
presence-nvim = {
|
cord = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -100,8 +109,8 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
lazygit.enable = true;
|
lazygit.enable = true;
|
||||||
|
mini.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue