theme | author | date | paging |
---|---|---|---|
./path/to/theme.json |
@elijahmanor |
@elijahmanor@hachyderm.io |
Slide %d / %d |
- Treesitter syntax highlighting for
help
files - Native Treesitter Inspect window
- Status Column for fold, sign, and number
- EditorConfig support
- NVIM_APPNAME support for configuration directories
- Run Lua scripts from the shell
showcmdloc
informational statussplitkeep
to control horizontal split scroll- Lots more!
To enable, create .config/nvim/ftplugin/help.lua
vim.treesitter.start()
Opens a split window showing a text representation of the nodes in a lanugage tree for the current buffer.
lua vim.treesitter.inspect_tree()
:InspectTree
:help inspect_tree
statuscolumn
option to customize the area to the side of a window, normally containing the fold, sign and number columns. This new option follows the 'statusline' syntax...
vim.opt.statuscolumn = "%l %r"
:help statuscolumn
Neovim will now use settings from EditorConfig
root = true
[lib/**.js]
indent_style = tab
indent_size = 2
[{package.json,.travis.yml}]
indent_style = space
indent_size = 2
However, if you don't want this behavior you can turn it off.
vim.g.editorconfig = false
:help editorconfig
Environment variable that tells Neovim what directory should be used to find its configuration and state files.
git clone https://github.com/LazyVim/starter ~/.config/LazyVim
NVIM_APPNAME=LazyVim nvim
:help $NVIM_APPNAME
Neovim will look for (and auto-create) in the various XDG parent directories.
.
βββ .cache
βΒ Β βββ LazyVim
βββ .local
βββ share
βΒ Β βββ LazyVim
βββ state
βββ LazyVim
Added support for running Lua scripts from shell using -l
flag.
nvim -l foo.lua --arg1 --arg2
echo "print(42)" | nvim -l -
echo "print(vim.inspect(_G.arg))" | nvim -l - --arg1 --arg2
:help -l
showcmdloc
option to display theshowcmd
information in the status line or tab line. A new %S statusline item is available to place theshowcmd
text in a customstatusline
. Useful for whencmdheight
is set to 0.
:lua vim.opt.cmdheight = 0
:lua vim.opt.statusline = "%f - %y %=%S %l / %L"
:lua vim.opt.showcmdloc = "statusline"
:help showcmdloc
Possible values are:
cursor
Keep the same relative cursor position (default)screen
Keep the text on the same screen line.topline
Keep the topline the same.
:help splitkeep
:help news
π
I used the
slides
CLI app to render the abovereadme.md
in the terminal https://github.com/maaslalani/slides