Skip to content

Customized NeoVim setup for enhanced VueJS, TailwindCSS, and TypeScript development, featuring integrated tools like Prettier and ESLint, along with a suite of efficient keyboard shortcuts for streamlined coding workflows.

License

Notifications You must be signed in to change notification settings

FlorianBx/nvim_config

Repository files navigation

FBNeoVim Configuration for VueJS/TailwindCSS/TypeScript Web Development

Nvim Preview

This project contains a customized NeoVim setup, tailored for web development with VueJS, TailwindCSS, TypeScript, Prettier, and ESLint.

Key Features

  • Full support for:
  • Integration with Prettier and ESLint for standardized and clean code
  • Custom keyboard shortcuts for efficient navigation and editing

Installation

  1. Clone this repository into your NeoVim configuration directory.
  2. Install the required plugins using lazy.nvim plugins manager.
  3. Restart NeoVim to apply the changes.

Keyboard Shortcuts

Enhance your development efficiency with these intuitive shortcuts:

NeoVim Keymaps

  • Move Selected Lines:
    • J and K in normal and visual modes to move lines up and down.
  • Quick Actions:
    • jj in insert mode to escape to normal mode.
    • <leader>eq to quit and <leader>ew to save.
  • Tabs and Window Management:
    • te to open a new tab, tc to close the current tab.
    • ss for horizontal split, sv for vertical split.
    • sx for close the current split pane
  • Rapid Window Resizing:
    • <Shift> + h to resize left by 5 columns.
    • <Shift> + l to resize right by 5 columns.
    • <Shift> + k to resize up by 5 rows.
    • <Shift> + j to resize down by 5 rows.
    • Increase/Decrease the number for faster or slower resizing (e.g., 2 for two columns/rows)
    keymap.set('n', '<S-l>', '<C-w><2', keymapOptionsWithDesc('Resize window left'))
  • 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.
  • Maximizer:
    • <leader>sm to toggle maximizer.

vim-visual-multi Keybindings

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 and N 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 or c to change them.

For more detailed usage and commands, check the vim-visual-multi documentation.

tmux Keybindings

  • 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 and y to copy in vi mode.
  • TMUX Plugins:
    • Plugins like vim-tmux-navigator, and tmux-continuum for enhanced functionality.

Customization

Feel free to add or modify shortcuts in the keymaps.lua file. Default shortcuts are loaded on the VeryLazy event.

Contributing

Your ideas and contributions are welcome! Create an issue or a pull request with your suggestions.

License

Licensed under the MIT License. See LICENCE for details.

About

Customized NeoVim setup for enhanced VueJS, TailwindCSS, and TypeScript development, featuring integrated tools like Prettier and ESLint, along with a suite of efficient keyboard shortcuts for streamlined coding workflows.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages