From ed3a568181fda7170f683d001443e490472ce1d9 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Tue, 3 Oct 2023 12:50:32 +0700 Subject: [PATCH] feat: more neovim keymaps --- docs/2023-05-03-neovim.html | 29 ++++++++++++++++++++--------- posts/2023-05-03-neovim.md | 9 +++++++-- 2 files changed, 27 insertions(+), 11 deletions(-) diff --git a/docs/2023-05-03-neovim.html b/docs/2023-05-03-neovim.html index 9f8037c..e476cac 100644 --- a/docs/2023-05-03-neovim.html +++ b/docs/2023-05-03-neovim.html @@ -210,15 +210,6 @@ vim.keymap.set(U: toggle hidden -
  • -

    - With - hrsh7th/nvim-cmp: -

    -
      -
    • <C-Space>: trigger completion
    • -
    -
  • With @@ -281,6 +272,12 @@ vim.keymap.set(gc: comment/uncomment selected lines

  • +
  • + With mini-completion +
      +
    • <C-Space>: trigger completion
    • +
    +
  • With mini-surround
      @@ -302,7 +299,21 @@ vim.keymap.set(<Space>e: float diagnostic
    • <Space>k: hover
    • <F2>: rename
    • +
    • <Space>f: format code
    • <Space>ca: code action
    • +
    • <Space>ci: organize imports
    • +
    +
  • +
  • +

    + With + zbirenbaum/copilot.lua +

    +
      +
    • <M-Space>: trigger copilot
    • +
    • <M-l>: accept copilot
  • diff --git a/posts/2023-05-03-neovim.md b/posts/2023-05-03-neovim.md index 8274c64..b7b73ff 100644 --- a/posts/2023-05-03-neovim.md +++ b/posts/2023-05-03-neovim.md @@ -123,8 +123,6 @@ Ground rules: - `c`: copy - `p`: paste - `U`: toggle hidden -- With [hrsh7th/nvim-cmp](https://github.com/hrsh7th/nvim-cmp): - - ``: trigger completion - With [lewis6991/gitsigns.nvim](https://github.com/lewis6991/gitsigns.nvim): - `]c`, `[c`: next/previous git change - With [tpope/vim-projectionist](https://github.com/tpope/vim-projectionist) @@ -139,6 +137,8 @@ Ground rules: - With mini-comment - `gcc`: comment/uncomment current line - `gc`: comment/uncomment selected lines + - With mini-completion + - ``: trigger completion - With mini-surround - `sa`: add surround - `sd`: delete surround @@ -147,7 +147,12 @@ Ground rules: - `e`: float diagnostic - `k`: hover - ``: rename + - `f`: format code - `ca`: code action + - `ci`: organize imports +- With [zbirenbaum/copilot.lua](https://github.com/zbirenbaum/copilot.lua) + - ``: trigger copilot + - `: accept copilot` ## References / Thanks