feat: add git gutter
parent
accd7fd0b1
commit
3096c827c5
|
@ -110,7 +110,6 @@
|
|||
vim.<span class="pl-smi">keymap</span>.<span class="pl-c1">set</span>(<span class="pl-s"><span class="pl-pds">"</span>n<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span><leader>rg<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>:Rg<CR><span class="pl-pds">"</span></span>)
|
||||
vim.<span class="pl-smi">keymap</span>.<span class="pl-c1">set</span>(<span class="pl-s"><span class="pl-pds">"</span>n<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span><C-n><span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>:NvimTreeToggle<CR><span class="pl-pds">"</span></span>)
|
||||
vim.<span class="pl-smi">keymap</span>.<span class="pl-c1">set</span>(<span class="pl-s"><span class="pl-pds">"</span>n<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span><leader>n<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>:NvimTreeFindFile<CR><span class="pl-pds">"</span></span>)
|
||||
vim.<span class="pl-smi">keymap</span>.<span class="pl-c1">set</span>(<span class="pl-s"><span class="pl-pds">"</span>n<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span><leader>z<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>:ZenMode<CR><span class="pl-pds">"</span></span>)
|
||||
vim.<span class="pl-smi">keymap</span>.<span class="pl-c1">set</span>(<span class="pl-s"><span class="pl-pds">"</span>n<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span><leader>tr<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>:lua MiniTrailspace.trim()<CR><span class="pl-pds">"</span></span>)
|
||||
vim.<span class="pl-smi">keymap</span>.<span class="pl-c1">set</span>(<span class="pl-s"><span class="pl-pds">"</span>n<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span><F2><span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>:GoRename<CR><span class="pl-pds">"</span></span>)
|
||||
vim.<span class="pl-smi">keymap</span>.<span class="pl-c1">set</span>(<span class="pl-s"><span class="pl-pds">"</span>n<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span><leader>gf<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>:GoFillStruct<CR>:w<CR><span class="pl-pds">"</span></span>)
|
||||
|
@ -154,6 +153,15 @@ vim.<span class="pl-smi">keymap</span>.<span class="pl-c1">set</span>(<span clas
|
|||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
With
|
||||
<a href="https://github.com/airblade/vim-gitgutter"
|
||||
>airblade/vim-gitgutter</a
|
||||
>:
|
||||
<ul>
|
||||
<li><code>]c</code>, <code>[c</code>: next/previous git change</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
<a
|
||||
|
|
|
@ -45,7 +45,6 @@ vim.keymap.set("n", "<leader>f", ":FZF<CR>")
|
|||
vim.keymap.set("n", "<leader>rg", ":Rg<CR>")
|
||||
vim.keymap.set("n", "<C-n>", ":NvimTreeToggle<CR>")
|
||||
vim.keymap.set("n", "<leader>n", ":NvimTreeFindFile<CR>")
|
||||
vim.keymap.set("n", "<leader>z", ":ZenMode<CR>")
|
||||
vim.keymap.set("n", "<leader>tr", ":lua MiniTrailspace.trim()<CR>")
|
||||
vim.keymap.set("n", "<F2>", ":GoRename<CR>")
|
||||
vim.keymap.set("n", "<leader>gf", ":GoFillStruct<CR>:w<CR>")
|
||||
|
@ -63,6 +62,8 @@ vim.keymap.set("n", "<leader>gdd", ":GoDeclsDir<CR>")
|
|||
- `[b`, `]b`: buffer backward/forward
|
||||
- `[T`, `]T`, `[t`, `]t`: tree-sitter backward/forward
|
||||
- Support more languages with [nvim-treesitter/nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter)
|
||||
- With [airblade/vim-gitgutter](https://github.com/airblade/vim-gitgutter):
|
||||
- `]c`, `[c`: next/previous git change
|
||||
|
||||
## Reference
|
||||
|
||||
|
|
Loading…
Reference in New Issue