Skip to content

0xkiplet/lvim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My LunarVim configuration

  • LunarVim? LunarVim is an opinionated, extensible, and fast IDE layer for Neovim.
  • Neovim? Neovim is a project/editor that seeks to aggressively refactor Vim.
  • Vim? DuckDuckGo/Google/Bing it!

Usage

LunarVim

I mainly use:

  • TypeScript & JavaScript
    • Node
    • Vue
    • React
  • C#
    • .NET (Core)
    • ASP.NET Core
  • Python 3
  • Lua
  • Swift
    • iOS/iPadOS/macOS
  • HTML & CSS
  • Markdown & JSON & YAML
  • Bash / Zsh / POSIX
  • PowerShell

I use tmux with LunarVim. I switch from one project to another using tmux sessions. I have removed the projects option from LunarVim dashboard, because I don't need it.

For tmux config details see my dotfiles.

Setup/Dependencies

Installation (macOS)

Installation on macOS v11+ using Homebrew.

Note! You might have some of the applications and/or other dependencies already installed.

# Update Homebrew
# ---------------
brew update

# Install neovim, fnm and Python 3
# --------------------------------
brew install neovim fnm python

# Install some other dependencies
brew install fzy luarocks ripgrep shellcheck shfmt

# FiraCode Nerd Font
brew install font-fira-code-nerd-font

# Manually configure terminal emulator to use the installed nerd font

# Fast Node Manager & Node & NPM
# --------------------------------------
# Change the current NodeJS LTS version below
NODE_VERSION="16.13.1"
fnm install $NODE_VERSION
fnm default $NODE_VERSION
fnm use $NODE_VERSION

# NPM
# ---
# Neovim dependencies
npm install -g neovim tree-sitter-cli yarn
# Linters, formatters etc.
npm install -g eslint_d markdownlint-cli prettier stylelint write-good

# PIP
# ---
# Neovim dependency
pip3 install pynvim

# Pyhton linters/formatters
pip3 install black isort flake8

# Lua linter
# ----------
luarocks luacheck

# Lua formatter
# -------------
STYLUA_VERSION="0.11.0"
cd ~/.local/bin
wget https://github.com/JohnnyMorganz/StyLua/releases/download/v${STYLUA_VERSION}/stylua-${STYLUA_VERSION}-macos.zip
unzip stylua-${STYLUA_VERSION}-macos.zip
rm stylua-${STYLUA_VERSION}-macos.zip
chmod +x stylua

# LunarVim (rolling)
# ------------------
LVBRANCH=rolling \
  bash <(curl -s https://raw.githubusercontent.com/lunarvim/lunarvim/rolling/utils/installer/install.sh)

# My LunarVim configuration
# -------------------------
cd ~/.config
mv lvim lvim-original
git clone https://github.com/PasiBergman/lvim.git lvim-my
ln -s lvim-my lvim

LunarVim configuration

I have disabled the automatic installation of language servers. Start lvim and issue the following commands:

:PackerSync
:LspInstall vuels omnisharp tsserver sumneko_lua pyright html cssls
:LspInstall jsonls yamlls vimls emmet_ls dockerls tailwindcss bashls

Screenshots

Top row in the screenshots is tmux status bar, not LunarVim.

TypeScript

TypeScript

Vue

Vue

C#

C#

About

My LunarVim configuration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%