arturonavax / environment

Development environment with terminal, with Alacritty, Tmux, Zsh and Vim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Screenshot environment

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.

πŸ“œ Tutorials here πŸ“œ

Table of Contents

  1. Features β˜‘οΈ
  2. Installation ✨
  3. After installation ℹ️
  4. Requirements
  5. Update πŸ”ƒ
  6. Custom configuration βš™οΈ
  7. More keyboard speed ⌨️
  8. Precaution ⚠️
  9. LunarVim Checkhealth ❀️
  10. Reminders

Features β˜‘οΈ

Screenshots of the environment in screenshots/

Terminal πŸ’» (alacritty)

  • tmux

  • zsh

    • FzF πŸ” (<Ctrl>r)

    • Git Plugin πŸ™

    • Syntax highlighting πŸ”¦πŸŒˆ

    • Autosuggestions πŸ’­

Editor πŸ“ (lvim)

  • 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.0

    • npm
    • 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.

About

Development environment with terminal, with Alacritty, Tmux, Zsh and Vim

License:MIT License


Languages

Language:Shell 63.5%Language:Lua 33.7%Language:JavaScript 2.8%