Make sure you have the newest version of Neovim (0.5).
bash <(curl -s https://raw.githubusercontent.com/ChristianChiarulli/lunarvim/master/utils/installer/install.sh)
The following command installs LunarVim. Change LVBRANCH
to the branch you'd like to install. master
for the stable branch and rolling
for the latest changes.
LVBRANCH=rolling bash <(curl -s https://raw.githubusercontent.com/ChristianChiarulli/lunarvim/rolling/utils/installer/install.sh)
~/.local/share/lunarvim
.lvim
command. nvim
will only launch standard neovim.lv-config.lua
) can now be found in ~/.config/lvim
. You can initialize this folder as a git repository to track changes to your configuration files.nvim
command, add an alias entry to your shell's config file: alias nvim=lvim
. To temporarily revert to the default nvim
prefix it with a backslash \nvim
.lv-config.lua
have been renamed. For details look hereIf your installation is stuck on Ok to remove? [y/N]
, it means there are some leftovers, \
you can run the script with --overwrite
but be warned this will remove the following folders:
~/.cache/nvim
~/.config/nvim
#Removed only on Master Branch~/.local/share/nvim/site/pack/packer
#Removed only on Master Branch~/.local/share/lunarvim
#Removed only on Rolling Branch~/.config/lvim
#Removed only on Rolling Branch
curl -s https://raw.githubusercontent.com/ChristianChiarulli/lunarvim/rolling/utils/installer/install.sh | LVBRANCH=rolling bash -s -- --overwrite
then run nvim and wait for treesitter to finish the installation
Just enter :LspInstall
followed by <TAB>
to see your options
NOTE I recommend installing lua
for autocomplete in lv-config.lua
For the julia language server look here
To activate other plugins and language features use the lv-config.lua
file provided in the nvim
folder (~/.config/nvim/lv-config.lua
) in the master branch or (~/.config/lvim/lv-config.lua
) on rolling
Example:
-- general
lvim.format_on_save = true
lvim.lint_on_save = true
lvim.colorscheme = "spacegray"
lvim.builtin.compe.autocomplete = true
-- keymappings
lvim.leader = "space"
-- After changing plugin config exit and reopen LunarVim, Run :PackerInstall :PackerCompile
lvim.builtin.dashboard.active = true
lvim.builtin.terminal.active = true
-- if you don't want all the parsers change this to a table of the ones you want
lvim.builtin.treesitter.ensure_installed = "maintained"
lvim.builtin.treesitter.ignore_install = { "haskell" }
lvim.builtin.treesitter.highlight.enabled = true
lvim.lang.python.formatter.exe = "black"
lvim.lang.python.linters = ""
lvim.lsp.diagnostics.virtual_text = false
-- Additional Plugins
lvim.plugins = {
{"lunarvim/colorschemes"},
{"folke/tokyonight.nvim"}, {
"ray-x/lsp_signature.nvim",
config = function() require"lsp_signature".on_attach() end,
event = "InsertEnter"
}
}
-- Autocommands (https://neovim.io/doc/user/autocmd.html)
-- lvim.autocommands.custom_groups = {
-- { "BufWinEnter", "*.lua", "setlocal ts=8 sw=8" },
-- }
In case you want to see all the settings inside LunarVim, run the following:
cd /tmp
lvim --headless +'lua require("lv-utils").generate_settings()' +qa && sort -o lv-settings.lua{,}
and then inspect /tmp/lv-settings.lua
file
In order to update you should be aware of three things Plugins
, LunarVim
and Neovim
To update plugins:
:PackerUpdate
To update LunarVim:
# Master Branch
cd ~/.config/nvim && git pull
:PackerSync
# Rolling Branch
cd ~/.local/share/lunarvim/lvim && git pull
:PackerSync
To update Neovim use your package manager or compile from source
"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.