This project contains a customized NeoVim setup, tailored for web development with VueJS, TailwindCSS, TypeScript, Prettier, and ESLint.
- Full support for:
- Integration with Prettier and ESLint for standardized and clean code
- Custom keyboard shortcuts for efficient navigation and editing
- Clone this repository into your NeoVim configuration directory.
- Install the required plugins using lazy.nvim plugins manager.
- Restart NeoVim to apply the changes.
Enhance your development efficiency with these intuitive shortcuts:
- Quick Actions:
jj
in insert mode to escape to normal mode.<leader>eq
to quit and<leader>ew
to save.
- Tabs and Window Management:
ss
for horizontal split,sv
for vertical split.
- Search and Rename:
sf
to search files with Telescope.<leader>rn
to rename symbols.
- Treesitter Keymaps:
- Custom text objects like
e=
,n=
,a:
,aa
, etc. for enhanced code manipulation.
- Custom text objects like
- Maximizer:
<leader>sm
to toggle maximizer.
- Document the code
<leader>ng
- Select all occurrences of a word
-
<leader>*
- Go to definition
-
<leader>gt
Extend your multi-cursor editing capabilities with vim-visual-multi
, enabling you to select and edit multiple instances of text simultaneously.
- Start Multi-Cursor Selection:
<C-n>
to start selecting instances of the word under the cursor. Press<C-n>
again to select the next occurrence.
- Skip and Remove Selections:
<C-x>
to skip the current occurrence and move to the next.<C-p>
to remove the last selected occurrence from the selection.
- Select All Occurrences:
<C-Down>
to select all occurrences of the word under the cursor in the visible window.
- Vertical Block Selection:
<C-v>
to start vertical block selection, allowing column-based text selection.
- Navigate Selections:
n
andN
to navigate through the selections forward and backward, respectively.
- Visual Multi Commands:
- While in visual multi mode, you can use normal mode commands to edit text, such as
d
to delete selections orc
to change them.
- While in visual multi mode, you can use normal mode commands to edit text, such as
For more detailed usage and commands, check the vim-visual-multi documentation.
-
Lists and Diagnostics:
<leader>dl
to show diagnostics list<leader>ol
to show document outline<leader>sl
to show workspace symbols<leader>cl
to open COC list<leader>cr
to restart COC<leader>cd
to show diagnosticsK
to show error details under cursor
-
Code Navigation:
gt
to jump to definitiongy
to jump to type definitiongi
to jump to implementationgr
to jump to references
-
Error Navigation:
[g
to go to previous diagnostic]g
to go to next diagnostic
- Window and Pane Management:
C-a
as the prefix.|
and-
to split windows horizontally and vertically.r
to reload tmux configuration.j
,k
,l
,h
to resize panes.m
to toggle pane zoom.
- Mouse Support:
- Mouse mode enabled for easy window and pane management.
- Copy Mode:
v
to start selection andy
to copy in vi mode.
- TMUX Plugins:
- Plugins like
vim-tmux-navigator
, andtmux-continuum
for enhanced functionality.
- Plugins like
Feel free to add or modify shortcuts in the keymaps.lua
file. Default shortcuts are loaded on the VeryLazy
event.
Your ideas and contributions are welcome! Create an issue or a pull request with your suggestions.
Licensed under the MIT License. See LICENCE for details.