Git Product home page Git Product logo

florianbx / nvim_config Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 5.62 MB

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: Apache License 2.0

Lua 100.00%
nvim nvim-configs keymapping lsp lua manson noice nvim-lazy

nvim_config's Introduction

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.

nvim_config's People

Contributors

florianbx avatar

Stargazers

Garrot Yoan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.