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 = " ";
|
||||
|
||||
autoCmd = [
|
||||
{
|
||||
callback = ''
|
||||
function(args)
|
||||
require("conform").format({ bufnr = args.buf })
|
||||
end
|
||||
'';
|
||||
|
||||
event = ["BufWritePre"];
|
||||
pattern = [
|
||||
"*"
|
||||
];
|
||||
desc = "autoformatting on save";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
|
@ -14,12 +14,41 @@
|
|||
{
|
||||
mode = "n";
|
||||
action = "<cmd>BufferNext<cr>";
|
||||
key = "<leader><tab><tab>";
|
||||
key = "<S-h>";
|
||||
options = {
|
||||
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";
|
||||
action = "<cmd>BufferClose<cr>";
|
||||
|
@ -39,13 +68,13 @@
|
|||
}
|
||||
|
||||
{
|
||||
mode = "n";
|
||||
action = "<cmd>LazyGit<cr>";
|
||||
key = "<leader>gg";
|
||||
options = {
|
||||
desc = "Open lazygit";
|
||||
};
|
||||
}
|
||||
mode = "n";
|
||||
action = "<cmd>LazyGit<cr>";
|
||||
key = "<leader>gg";
|
||||
options = {
|
||||
desc = "Open lazygit";
|
||||
};
|
||||
}
|
||||
];
|
||||
|
||||
plugins.fzf-lua.keymaps = {
|
||||
|
|
|
@ -32,6 +32,15 @@
|
|||
|
||||
conform-nvim = {
|
||||
enable = true;
|
||||
settings.formatters_by_ft = {
|
||||
rust = ["rustfmt"];
|
||||
lua = ["stylua"];
|
||||
javascript = {
|
||||
__unkeyed-1 = "prettierd";
|
||||
__unkeyed-2 = "prettier";
|
||||
stop_after_first = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
markdown-preview = {
|
||||
|
@ -66,7 +75,7 @@
|
|||
enable = true;
|
||||
};
|
||||
|
||||
presence-nvim = {
|
||||
cord = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
|
@ -100,8 +109,8 @@
|
|||
enable = true;
|
||||
};
|
||||
|
||||
lazygit.enable = true;
|
||||
lazygit.enable = true;
|
||||
mini.enable = true;
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue