https://github.com/ChristianChiarulli/LunarVim
You can follow the steps in the README file, install required dependencies
https://www.lunarvim.org/plugins/#installing
Open config.lua
file, easy way is to open lvim editor and click on Configuration
option from home page
Rails setup
-- Additional Plugins
lvim.plugins = {
{"vim-test/vim-test"},
{"tpope/vim-rails"}
}
-- VIM configurations (my custom configurations)
vim.o.relativenumber = true
-- vim-test keybindings
local map = vim.api.nvim_set_keymap
map('n', '<Leader>tf', ':TestFile<CR>', {silent = true})
map('n', '<Leader>tt', ':TestNearest<CR>', {silent = true})
map('n', '<Leader>ts', ':TestSuite<CR>', {silent = true})
map('n', '<Leader>tl', ':TestLast<CR>', {silent = true})
map('n', '<Leader>tg', ':TestVisit<CR>', {silent = true})
-- vim-test strategy
vim.g['test#strategy'] = 'neovim'
-- using neovim strategy, so that pressing anykey will not close test result window
vim.g['test#neovim#start_normal'] = 1
brew tap homebrew/cask-fonts
brew install --cask font-fira-code-nerd-font
Manually
meslo is another great nerd font, you can download and install them
Download these four ttf files:
Once fira nerd font is installed, don't forget to change font for your terminal to Fira NF
brew install ranger
brew install ripgrep
brew install the_silver_searcher
brew install ack
Alacritty configuration