GithubHelp home page GithubHelp logo

nvim-lazy's Introduction

๐Ÿ’ค LazyVim

A starter template for LazyVim. Refer to the documentation to get started.

System Dependencies

  • git (for LazyVim)

  • rg (ripgrep) (for LazyVim)

  • fd (for LazyVim)

  • lazygit (for LazyVim) : You can turn off its keybinding if you don't feel like installing it

  • unzip (Mason)

  • wget (Mason)

  • curl (Mason)

  • gzip (Mason)

How to use ?

To update all the plugins and everything : Run nvim then press l to open lazyvim then Sync everything

LSP

Setup Using Mason

Setup Python

  1. Install pyright using :Mason
  2. Make pyright use the Virtual Environment
  • If the venv is active in the SHELL, it should be active in neovim. Hence pyright will automatically detect it

Q: Do we need to configure any files ?

  • No

clangd

-. Install using Mason

If you face the indentation problem: Indentation becoming 2 automatically on save

Reason: clangd uses ClangFormat engine for formatting and defaults to LLVM Style Guide (2 spaces indent width)

Solution: Create a file .clang-format in your current project directory and add the following :

BasedOnStyle: LLVM
IndentWidth: 4
TabWidth: 4
UseTab: Never

This will make the configuration work in that Project only. How to make it global ?

  • Create this file .clang-format in your $HOME directory for global config

Keymaps

If you want to override an existing mapping, make sure to disable it first in the correct place.

Plugins

flash.nvim

  • Using it to jump cursor to anywhere in the visible screen
  • Keybinded to f

Things I'm removing form LazyVim

I'll refer this if i want to look at things i want back

Keybindings

You can delete the Keybindings using vim.keymap.del( modes , keybinding)

Some Keybindings that i removed are from them

  • Lazygit : Since i am not using it I'm removing them for now
  • Windows
  • buffers

Example:

-- lazygit
vim.keymap.del("n", "<leader>gg")

Telescope Keybindings

Removed using :

return {
  "nvim-telescope/telescope.nvim",
  keys = {
    -- disabling extra keymaps
    { "<leader>/", false }, -- grep text (root dir) : i'll use <leader> + s + g
    { "<leader>:", false }, -- command history : i'll use <leader> + s + c
    { "<leader><space>", false }, -- Find files : i'll use <leader> + f + f
    { "<leader>,", false }, -- Switch buffer : Use <leader> + f + b
  },
}

nvim-lazy's People

Contributors

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