Giter Site home page Giter Site logo

lvim-config's Introduction

Lunar Vim config

image

Gradually learn with a keymaps menu (Default Vim behavior/keyMaps exclude from this menu)

image

Why

  • Easier to learn with the menu that show all keymaps
  • I love saving my config on the cloud to get it fast if I change OS or works on another PC.
  • Eslint and prettier are setup correctly to works with typescript and react (auto format on save works)
  • Few tweaks that make everything easier or remove bugs
  • Few usefull plugin added and already mapped to control for you
  • LunarVim is easy and fast to setup, you'll spare a really good time to simply git clone that config (Easier to remove or edit than add new stuff)
  • Add some missing to treesitter

Plugin added

Most of the plugins are listed hehere: https://www.lunarvim.org/docs/plugins/extra-plugins

  • git-blame
  • nvim-specter
  • trouble
  • lsp_signature <- so nice
  • goto-preview <- sooo nice
  • Harpoon <- To be Blazingly fast
  • Mini sourround
  • package-info
  • cutlass <- Better Telescope view/preview!

P.S. Almost everything is accesible if you do <leader> and you wait 2 seconds. (popup will show you shortcuts)

How to setup

On Mac I recommand to use Kitty terminal. It's faster and display things correctly.

  • Install and use Kitty Terminal https://sw.kovidgoyal.net/kitty/binary/ (On Linux you could skip that, but if you have visual problems, get it)
  • Install neoVim 8.0+ https://github.com/neovim/neovim/wiki/Installing-Neovim
  • Install LunarVim on top of it https://www.lunarvim.org/docs/installation (Nightly <- !Important! to use the latest master branch)
  • Then execute that blazingly fast command to replace the config: rm -R ~/.config/lvim && git clone [email protected]:t1gu1/lvim-config.git ~/.config/lvim
  • Install ripgrep it will ignore files in you .ignore and things like that
  • Install The nerds-fonts include in this repo (Be sure to use it in your terminal font config to get icons & etc)
  • When you launch lvim the first time install the packer plugins. (Be on the master branch of lvim before) (I should provide the command line for that)
  • Install your Mason things with :Mason
  • Close lvim and open it again. Now do a :checkhealth to check if you have some issues/missing dependency from your OS.
  • If you fix an issue close lvim before another :checkhealth

Mason things I personally install

image

Issue I got with a checkhealth or other that can fix easly

  • Install wget with brew
  • :TSUpdate vim
  • :TSUpdate lua
  • :TSUpdate markdown (etc, it will show you the list)
  • On mac use Kitty terminal (Linux is perfect on a base terminal)

Basic nice commands

P.S. I'll repeat some commands, but it feel like it's the nice to know if you wanna try fast

  • <leader>o will open the current directory file in your OS GUI
  • <leader>h will open the harpoon options menu
  • <leader> Alone, after few seconds, will display a modal with a lot of commands in it
  • <cr>| will display terminal
  • 2<cr>| will display terminal number 2
  • /wordToSearch will highlight words in you file
  • :%s/wordToReplace/wordThatWillReplace live search and replace in the current file
  • <leader>r will open the global search and replace
    • n and N will move you to the next or previous word
  • <cr>h <cr>l <cr>j <cr>k will make you move to between windows (Example, if a code file is open and the file explorer is open)
  • <leader>bb will make you move to you previous tab
  • <leader>bn will make you move to the next tab
  • <cr>s will save/write you file

Commands in nvimTree

  • a Create a new file or folder (By adding / to the path, it will be a folder)
  • x to files and folder you want to move then press p to the place you want move/paste them
  • r Rename a file or folder

Legend

  • <leader> = spacing bar
  • <cr> = ctrl
  • | is at the same place where the backslash is \ (Just to say it's really a caracter)

Nice to know

  • The things that determine "A Project" is if a ".git folder exist".
  • There is an auto save (Not sure if the time delay really works)
  • d and dd are modified to just remove without replacing the yank y value. (cutlass plugin)
  • Harpoon plugin is a sweet plugin <leader>h will show you more.
  • You can modify everything if you want.

What I would love to add

  • Add a one line command to install all require packages (like ripgrep) on mac and Linux
  • Add command line to switch to the master brach of LunarVim or a specefic commit id
  • (⚠️ The complexity for the result isn't worth for now) Something to preview or inline png/svg images
  • (✅ Done) harpoon plugin

lvim-config's People

Contributors

t1gu1 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.