Skip to content

jssteinberg/config

Repository files navigation

.config

Config for Wezterm, Fish, Neovim, Vim and Ripgrep. Not tested for Windows.

Get started

Requires: git

  1. cd
  2. git clone as ~/.config
ln -s .config/vimrc .vimrc
set -Ux RIPGREP_CONFIG_PATH ~/.config/ripgreprc
ln -s .config/viebrc .viebrc

Terminal tools

Tips

More global fish config from the shell:

set -Ux FZF_DEFAULT_COMMAND rg --files --hidden --follow
set -Ux EDITOR "vim"

# create and save alias
alias ls "exa"
funcsave ls

# to remove
functions --erase ls
functions -n

You can also use file: .config/fish/config.fish

Neovim

Functional, lightweight and 'native extending' neovim config with a focus on web front-end coding, though it's usable for most text editing. Uncomplicated config for dummies hacking (author included).

Install Neovim >= 0.8.0 (needs to be built with LuaJIT), fzf, ripgrep, fd, bat, delta, prettierd. nvim and Lazy.nvim installs. Then:

  • :TSInstall all/:TSUpdate
  • :Mason to install LSPs

TODO

  • format files async on save, but not if their too big, or min...

Resources

Vim 8 +lua

A Vim config that works without plugins. It gives no errors on missing plugins unless keymaps/commands requiring plugins are used. Requries:

  • Vim >= version 8 +lua.
  • Package managing with minpac

Maintenance

Terminal:

brew update && brew upgrade
fisher update
npm -g update
npm -g outdate
npm -g i …@latest

Explicitly install outdated global NPM packages not automatically updated.

Neovim:

:Lazy<cr>
S
:TSUpdate<cr>
:Mason<cr>
U

Troubleshooting

  • UTF-8 fish, tmux, neovim LANG, LC_ALL error. Try adding this to your ~/.config/fish/config.fish:

     set -gx  LC_ALL en_US.UTF-8
  • Neovim: restart, see Maintenance. :checkhealth<cr>

  • Neovim Treesitter "missing xcrun" for Macos: xcode-select --install

  • Neovim Treesitter "error executing Lua": nvim-treesitter/nvim-treesitter#3092

  • Neovim css autocompletion with css-lsp may depend on native non-LSP omnifunc.