nvim

[!NOTE|label:references:]

  • migration

  • osx/linux: ~/.config/nvim/init.vim

  • windows: %LOCALAPPDATA%\nvim\init.vim

install

[!NOTE]

dependencies

  • osx

    • gettext : GNU internationalization (i18n) and localization (l10n) library

    • libtermkey : Library for processing keyboard entry from the terminal

    • libuv : Multi-platform support library with a focus on asynchronous I/O

    • libvterm : C99 library which implements a VT220 or xterm terminal emulator

    • luajit : Just-In-Time Compiler (JIT) for the Lua programming language

    • luv : Bare libuv bindings for lua

    • msgpack : Library for a binary-based efficient data interchange format

    • tree-sitter : Parser generator tool and incremental parsing library

    • unibilium: Very basic terminfo library

  • tarball

    [!TIP]

    • osx: avoid unknown developer warning

building from source

[!NOTE|label:references:]

osx

[!NOTE|label:issue with wget certificate]

  • build with older MacOS

  • more settings

brew install -v --debug

[!NOTE|label:references:]

uninstall

package manager

windows

neovim-nightly

[!NOTE|label:references:]

  • No such file or directory @ rb_file_s_rename

    [!TIP|label:failure details]

initialize and configure

[!TIP]

:checkhealth

  • for venv

init.vim/init.lua

[!NOTE|label:references:]

  • create init.vim

  • init.lua

  • init.vim

yank/paste highlight

[!NOTE|label:references:]

config

[!NOTE|label:references:]

  • check status

config.lua

[!NOTE|label:references:]

standard-path

[!NOTE|label:references:]

  • using in init.lua

NAME
COMMAND
LINUX/OSX
WINDOWS

CONFIG DIRECTORY

stdpath("config")

$HOME/.config/nvim

%LOCALAPPDATA%\nvim

DATA DIRECTORY

stdpath("data")

$HOME/.local/share/nvim

%LOCALAPPDATA%\nvim-data

RUN DIRECTORY

:echo stdpath('run')

/tmp/nvim.user/xxx

%TEMP%\nvim.user\xxx

STATE DIRECTORY

stdpath("state")

$HOME/.local/state/nvim

%LOCALAPPDATA%\nvim-data

CACHE DIRECTORY

stdpath("cache")

$HOME/.cache/nvim

%LOCALAPPDATA%\Temp\nvim

LOG FILE

stdpath("log")

$HOME/.local/state/nvim/log

%LOCALAPPDATA%\nvim-data\log

ADDITIONAL CONFIGS DIRECTORY

stdpath("config_dirs")

['/etc/xdg/nvim']

-

ADDITIONAL DATA DIRECTORY

stdpath("data_dirs")

['/usr/local/share/nvim', '/usr/share/nvim']

-

list parser paths

lua

[!NOTE|label:references]

[!TIP] lua version in nvim is not using local lua version

tiktoken_core missing

[!TIP]

  1. matches to lua version inside nvim, not the system lua version

  1. using so instead of dylib

api info

true color

[!NOTE|label:references:]

  • force 16 colors

config path

[!NOTE]

  • SYNTAX FILES: ~/.config/nvim/syntax

  • ruby : ~/.config/nvim/ruby

tips

run Nvim without creating any directories or data files

Last updated

Was this helpful?