This is my own personal nvim config. I keep this as backup in case I wiped my config.
Intended for personal use (in termux and linux distros) but may work for others as well.
You are welcomed to fork and use my config.
There is no guarantee of stability or compatibility. Everything may change at anytime.
- modernish look (with catppuccin)
- autocompletion with lsp
- easy lsp install and setup with mason.nvim
- git interface for commits and conflict managing
- autosave
- telescope.nvim
- quick word jumping with leap.nvim
- ai autocompletion via codeium (non-termux)
- markdown preview
<ESC>:Mason<ENTER>
to enter Mason.
Select lsp and press i
to install.
Lsp will be automatically setup.
clangd
, rust_analyzer
, lua_ls
from mason does not work with termux.
Instead, install from package manager, this config is already set to work with installed versions.
For clangd:
apt install clangd
For rust analyzer:
apt install rust-analyzer
For lua language server (lua_ls
):
apt install lua-language-server
After installation, they should work automatically.
<ESC>:MarkdownPreview<ENTER>
to start preview
<ESC>:MarkdownPreviewStop<ENTER>
to stop preview
<ESC>:MarkdownPreviewToggle<ENTER>
to toggle preview
tt
: opens Telescope.nvimff
: opens nvim-treecf
: formats codeAlt-/
: word jumpAlt-Right
: accept codeium autocompleteAlt-Up
: switch to next codeium autocompleteAlt-Down
: switch to previous codeium autocompleteAlt-Left
: cancel normal autocomplete
codeium binary does not work with termux the last time I checked, hence plugin is disabled by default.
mv ~/.config/nvim ~/.config/nvim.old
git clone https://github.com/wmartinmimi/nvim-config ~/.config/nvim
If Lazy shows error on first install, reopen nvim, run :Lazy
, and run update (U).
WSL2 may bug out on some git repo, where scripts complain about ^M
.
if so, run the following on the affected plugins in ~/.local/share/nvim/lazy
git config core.autocrlf false
git reset --hard HEAD
- Nerdfont
Download a nerdfont, paste in ~/.termux, and rename to font.ttf
.
- Ripgrep
Download ripgrep for fast regex.
apt install ripgrep
- Nodejs
Download nodejs for Mason.
apt install nodejs
<ESC>:qa<ENTER>
MIT Licensed