Use nixvim
This commit is contained in:
parent
f0217e4640
commit
ecb2a05d60
72 changed files with 691 additions and 1664 deletions
62
modules/home-manager/coding/neovim/keymaps.nix
Normal file
62
modules/home-manager/coding/neovim/keymaps.nix
Normal file
|
@ -0,0 +1,62 @@
|
|||
{
|
||||
keymaps = [
|
||||
{
|
||||
action = "<Esc>A,<Esc>";
|
||||
key = ",,";
|
||||
mode = "i";
|
||||
}
|
||||
|
||||
{
|
||||
action = "<Esc>A;<Esc>";
|
||||
key = ";;";
|
||||
mode = "i";
|
||||
}
|
||||
|
||||
{
|
||||
action = "<cmd>lua vim.lsp.buf.format()<CR>";
|
||||
key = "<leader>f";
|
||||
}
|
||||
|
||||
{
|
||||
action = "\"+y";
|
||||
key = "<leader>y";
|
||||
mode = "x";
|
||||
}
|
||||
|
||||
{
|
||||
action = "@q";
|
||||
key = "Q";
|
||||
}
|
||||
|
||||
{
|
||||
action = "<cmd>silent !tmux new-window tmux-sessionizer<CR>";
|
||||
key = "<C-f>";
|
||||
}
|
||||
|
||||
{
|
||||
action = "<Esc>:w<CR>";
|
||||
key = "<C-s>";
|
||||
mode = ["i" "n"];
|
||||
}
|
||||
|
||||
{
|
||||
action = "<cmd>tabnew<CR>";
|
||||
key = "<C-t>";
|
||||
}
|
||||
|
||||
{
|
||||
action = "<cmd>!composer install<CR>";
|
||||
key = "<leader>ci";
|
||||
}
|
||||
|
||||
{
|
||||
action = "<cmd>edit composer.json<CR>";
|
||||
key = "<leader>ec";
|
||||
}
|
||||
|
||||
{
|
||||
action = "<cmd>edit flake.nix<CR>";
|
||||
key = "<leader>ef";
|
||||
}
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue