Giter Club home page Giter Club logo

jeezyvim's Introduction

JeezyVim

JeezyVim is a declarative NeoVim configuration built with NixVim.

This configuration aims to keep the familiarity of LunarVim while aggressively stripping away excessive IDE-like features to focus on delivering a fast, stable and reliable editor experience.

JeezyVim aims to keep any manually written Lua code to an absolute minimum, and for the purposes of this project any committed Lua files are considered to be technical debt.

This configuration gradually came to be out of the aggressive pruning of plugins that were unncessary for me in dileep-kishore's neovim configuration, which is also an excellent configuration for people looking for a "maximalist" configuration.

image

Usage and Installation

You can run this flake directly to try it out:

nix run github:LGUG2Z/JeezyVim

You can add JeezyVim as an input to your flake configuration like this:

{
    inputs.jeezyvim.url = "github:LGUG2Z/JeezyVim";
}

You can add the inputs.jeezyvim.overlays.default overlay to your nixpkgs to make pkgs.jeezyvim available.

If you are using any of my NixOS starter templates, you would add this to the overlays list in the nixpkgsWithOverlays function in flake.nix.

Extending

Is there a plugin or an LSP that you don't see enabled here, but you would like to enable when you install pkgs.jeezyvim? No problem!

{pkgs, ...}: {
  home.packages = [
    (pkgs.jeezyvim.nixvimExtend {
      # you can put anything under the "Options" section of the NixVim docs here
      # https://nix-community.github.io/nixvim/

      # some examples...

      # all your regular vim options here
      options = {
        textwidth = 120;
      };

      config = {
      # add your own personal keymaps preferences
        keymaps = [
          {
            mode = "n";
            action = ":vsplit<CR>";
            key = "|";
          }

          {
            mode = "n";
            action = ":split<CR>";
            key = "-";
          }
        ];


        plugins = {
          lsp.servers = {
            # full list of language servers you can enable on the left bar here:
            # https://nix-community.github.io/nixvim/plugins/lsp/servers/ansiblels/index.html

            graphql.enable = true;
          };

          # full list of plugins on the left bar here:
          # https://nix-community.github.io/nixvim/plugins/airline/index.html

          markdown-preview.enable = true;
        };
      };
    })
  ];
}

Forking

You can also just fork this repo and use it as a starting point for your own configuration!

Overview

LSPs, formatters and linters are set up for most common languages and configuration file types, as well the common TreeSitter-related plugins you probably remember from LunarVim.

The UI is also largely similar to LunarVim, using the lualine, bufferline and telescope plugins.

The keymaps are what you would expect, and whichkey is also integrated into the configuration to make various plugin keymaps discoverable.

Superpowers

There are a handful of shortcuts that I consider my superpowers in JetBrains IDEs which I have made LSP-equivalents for in this configuration.

  • ,, to rename whatever is under the cursor - trust me, this is the best shortcut I've ever made
  • ,b to peek at the definition of whatever is under the cursor
  • ,B to jump to the definition of whatever is under the cursor, or, if already at the definition, find all usages of the definition in a codebase
  • <C-t> to toggle in and out of the terminal; if the terminal line is focused, you can hit <Esc> to switch to normal mode in the terminal and then <C-t> again to hide it
  • <Space>e to toggle NvimTree, which when opening, will jump to the file in the current buffer
  • <Space>s to live grep
  • <Space>f to search through git-tracked files

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.