🌙 LunarVim is an IDE layer for Neovim. Completely free and community driven.
Find a file
2021-10-11 11:53:30 +03:30
.github [Bugfix]: Use local install in Github actions (#1628) 2021-09-30 18:53:14 +02:00
colors onedarker colorscheme 2021-08-30 00:59:23 -04:00
ftdetect feat: add filetype detection for solidity 2021-10-08 08:33:37 +02:00
lua fix: core.telescope has migrated to lvim.core.telescope 2021-10-11 11:53:30 +03:30
tests feat: add an independent lvim namespace (#1699) 2021-10-10 21:07:41 +02:00
utils fix: restore windows installer default branch 2021-10-03 16:23:06 +02:00
.gitignore stylua is always in root 2021-07-25 14:14:05 -04:00
.luacheckrc [Feature] Add lunarvim latest release tag to dashboard (#1436) 2021-09-17 04:13:52 -07:00
.pre-commit-config.yaml feat: add commitlint CI (#1459) 2021-09-30 07:44:35 +02:00
.stylua.toml stylua is always in root 2021-07-25 14:14:05 -04:00
CONTRIBUTING.md fix: add proper installation link (#1665) 2021-10-03 11:40:10 +03:30
init.lua feat: add an independent lvim namespace (#1699) 2021-10-10 21:07:41 +02:00
LICENSE update license 2021-03-15 10:47:00 -04:00
Makefile [Feature]: Add some very basic unit-tests (#1369) 2021-09-09 18:53:21 +02:00
README.md fix: add deprecation notice for lvim.lang.foo.lsp (#1670) 2021-10-03 22:23:13 +02:00

LunarVim Demo

Documentation

You can find all the documentation for LunarVim at lunarvim.org

Install In One Command!

Make sure you have the release version of Neovim (0.5).

bash <(curl -s https://raw.githubusercontent.com/lunarvim/lunarvim/master/utils/installer/install.sh)

Install Language support

  • Enter :LspInstall followed by <TAB> to see your options for LSP

  • Enter :TSInstall followed by <TAB> to see your options for syntax highlighting

NOTE I recommend installing lua for autocomplete in config.lua

Demo1 Demo2 Demo3

Configuration file

To install plugins configure LunarVim use the config.lua located here: ~/.config/lvim/config.lua

Example:

-- general
lvim.format_on_save = true
lvim.colorscheme = "onedarker"

lvim.leader = "space"
-- add your own keymapping
lvim.keys.normal_mode["<C-s>"] = ":w<cr>"
-- unmap a default keymapping
-- lvim.keys.normal_mode["<C-Up>"] = ""
-- edit a default keymapping
-- lvim.keys.normal_mode["<C-q>"] = ":q<cr>"
-- set keymap with custom opts
-- lvim.keys.insert_mode["po"] = {'<ESC>', { noremap = true }}

-- Use which-key to add extra bindings with the leader-key prefix
-- lvim.builtin.which_key.mappings["P"] = { "<cmd>Telescope projects<CR>", "Projects" }

-- Configure builtin plugins
lvim.builtin.dashboard.active = true
lvim.builtin.terminal.active = true

-- Treesitter parsers change this to a table of the languages you want i.e. {"java", "python", javascript}
lvim.builtin.treesitter.ensure_installed = "maintained"
lvim.builtin.treesitter.ignore_install = { "haskell" }

-- Disable virtual text
lvim.lsp.diagnostics.virtual_text = false

-- set a formatter if you want to override the default lsp one (if it exists)
lvim.lang.python.formatters = {
  {
    exe = "black",
    args = {}
  }
}
-- set an additional linter
lvim.lang.python.linters = {
  {
    exe = "flake8",
    args = {}
  }
}


-- Additional Plugins
lvim.plugins = {
    {"lunarvim/colorschemes"},
    {"folke/tokyonight.nvim"}, {
        "ray-x/lsp_signature.nvim",
        config = function() require"lsp_signature".on_attach() end,
        event = "BufRead"
    }
}

Updating LunarVim

  • inside LunarVim :LvimUpdate
  • from the command-line lvim +LvimUpdate +q

Update the plugins

  • inside LunarVim :PackerUpdate

Breaking changes

  • lvim.lang.FOO.lsp is no longer supported after #1584. You can either use :NlspConfig for most of the settings you might need, or override the setup by adding an entry to lvim.lsp.override = { "FOO" }.

Resources

Testimonials

"I have the processing power of a potato with 4 gb of ram and LunarVim runs perfectly."

  • @juanCortelezzi, LunarVim user.

"My minimal config with a good amount less code than LunarVim loads 40ms slower. Time to switch."

  • @mvllow, Potential LunarVim user.

Lua