fix nvim
This commit is contained in:
parent
5f1d17489c
commit
a7b0d99d0d
2 changed files with 63 additions and 36 deletions
|
@ -15,25 +15,52 @@ in {
|
|||
|
||||
keymaps = [
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>ff";
|
||||
mode = "n";
|
||||
action = "require('telescope.builtin').find_files";
|
||||
lua = true;
|
||||
action = "require('telescope.builtin').find_files()<cr>";
|
||||
}
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>fg";
|
||||
mode = "n";
|
||||
action = "require('telescope.builtin').live_grep";
|
||||
lua = true;
|
||||
action = "require('Comment.api').toggle.linewise.current()<cr>";
|
||||
}
|
||||
{
|
||||
key = "g=";
|
||||
mode = "n";
|
||||
key = "<C-_>";
|
||||
action = "require('Comment.api').toggle.linewise.current";
|
||||
lua = true;
|
||||
}
|
||||
{
|
||||
mode = "n";
|
||||
key = "g=";
|
||||
action = "vim.lsp.buf.format";
|
||||
lua = true;
|
||||
action = "vim.lsp.buf.format{async=true}<cr>";
|
||||
}
|
||||
];
|
||||
|
||||
# keymaps = [
|
||||
# {
|
||||
# key = "<leader>ff";
|
||||
# mode = "n";
|
||||
# lua = true;
|
||||
# action = "require('telescope.builtin').find_files()";
|
||||
# }
|
||||
# {
|
||||
# key = "<leader>fg";
|
||||
# mode = "n";
|
||||
# lua = true;
|
||||
# action = "require('Comment.api').toggle.linewise.current()<cr>";
|
||||
# }
|
||||
# {
|
||||
# key = "g=";
|
||||
# mode = "n";
|
||||
# lua = true;
|
||||
# action = "vim.lsp.buf.format{async=true}<cr>";
|
||||
# }
|
||||
# ];
|
||||
|
||||
extraPlugins = with pkgs.vimPlugins; [ catppuccin-nvim luasnip ];
|
||||
|
||||
colorscheme = "catppuccin-frappe";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue