π¦
environment Development environment with terminal, with Alacritty, Tmux, Zsh and Vim. (Screenshots)
This environment uses LunarVim, so the
editor command is: lvim
Have git
, make
, python3
, pip
, pipx
, node
, npm
, pnpm
and cargo
installed on your system. (MacOS requires Homebrew to be installed)
Resolve EACCES permissions when installing packages globally to avoid error when installing packages with npm.
Table of Contents
- Features
βοΈ - Installation
β¨ - After installation
βΉοΈ - Requirements
- Update
π - Custom configuration
βοΈ - More keyboard speed
β¨οΈ - Precaution
β οΈ - LunarVim Checkhealth
β€οΈ - Reminders
βοΈ
Features Screenshots of the environment in screenshots/
-
True Color
π -
Nerd Font: Cascadia Code
π» (alacritty
)
Terminal -
-
FzF
π (<Ctrl>r
) -
Git Plugin
π -
Syntax highlighting
π¦ π -
Autosuggestions
π
-
π (lvim
)
Editor -
Fast startup time
β‘ -
Lazy-load of plugins
π¦₯ -
LSP / Code Completion
π§ π -
Installer (
:MasonInstall <language>
) -
Automatic language installation! (config server
:LspSettings <server>
) -
Autocomplete signatures
-
Hover documentation (
K
) -
Snippets
-
-
File search
π π (<Space>f
) -
Word search
π π€ (<Space>j
) -
Linters
π¦ π -
Formatters
π οΈ π
And much more
β¨
Installation This repo installs LunarVim, so the editor command is: lvim
This environment is prepared to be installed on Linux Ubuntu and MacOS, read/adapt the installation scripts if you have another distribution/operating system.
git clone --depth 1 https://github.com/arturonavax/environment.git
cd environment
bash install.sh all
# or
# bash install.sh editor terminal
A bash install.sh
alone (without parameters), would install only the editor
Aggressive new installation
Uninstall the main programs and delete the configuration and cache folders
bash uninstall.sh && bash install.sh all
βΉοΈ
After installation Run :PackerSync
in lvim
Open lvim
and wait for Treesitter
to install the modules
The first few lines of the LunarVim configuration file show some commands to be executed
Requirements
-
go
>= v1.15.0 -
node
>= v12.0.0npm
pnpm
-
rust
cargo
βοΈ
Custom configuration To add custom configurations do it in the ~/.lunarvim.lua
file
For example, to add more plugins would be:
-- add plugin vim-fugitive
vim.list_extend(lvim.plugins,
{
"folke/lsp-colors.nvim",
event = "BufRead",
}
)
-- change leader key
lvim.leader = ","
-- change theme
lvim.colorscheme = "onedarker"
β¨οΈ
More keyboard speed If with Ctrl-Alt-F3
you go to another terminal without graphic interface and
use Vim you will notice that the movement speed is higher, this is because our
graphic server configures the "delay rate" and "repeat rate" of our keyboard
with "slower" values... these are the values of how much we must wait for a key
to repeat and how much it repeats
When I noticed this I felt very slow in Vim, you can change the delay and repeat rate with the following command:
xset r rate 200 30
# to make it permanent, write in ~/.zshrc (backup first for safety)
(This configuration already integrates this command in .zshrc.arturonavax)
Transparency
Terminal transparency can be turned on and off using the transparent
command
and its alias tt
β οΈ
Precaution Read install.sh
file before running on your system
These instructions and the install.sh
file will replace your
configuration files for these tools, please keep this in mind
# Configuration backup
cp ~/.config/alacritty/alacritty.yml ~/.config/alacritty/alacritty.yml.copy
cp ~/.zshrc ~/.zshrc.copy
cp ~/.tmux.conf ~/.tmux.conf.copy
cp ~/.config/lvim/config.lua ~/.config/lvim/config.lua.copy
cp ~/.golangci.yml ~/.golangci.yml.copy
β€οΈ
LunarVim Checkhealth lvim +checkhealth
Reminders
-
Execute the required commands when installing this environment (read ~/.config/lvim/config.lua)
-
The first save (
:w
) in a new project, or a first installation of this environment will be slow, because it is caching.