mirror of
https://github.com/neovim/nvimdev.nvim.git
synced 2026-11-17 02:30:47 +00:00
Neovim plugin for working on Neovim
- Lua 91.6%
- Tree-sitter Query 6.7%
- Vim Script 1.7%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| autoload | ||
| lua | ||
| plugin | ||
| queries/lua | ||
| README.md | ||
nvimdev.nvim
Provides some nicities for hacking on Neovim:
- Auto-detect Neovim source tree and
:cdto the root. - Fast linting for C sources (clint.py and uncrustify).
- Uses
vim.diagnostic
- Uses
- Filetype settings appropriate for Neovim's source code.
- Hook into vim-projectionist: configure alternate files for the ".vim-src" directory, and a command to diff against the same file in Vim.
- Add commands
NvimTestRunandNvimTestClearfor running functional tests directly in the buffer.
Why?
Neovim has a pretty large code base and is full of Vim's rich and mysterious history. I have little knowledge of either and wrote a script to help me get around and automate some things. People have shown interest in using it, so it's now a plugin that will make maintenance easier.
Installation
😑
Requirements
- Python 3
- plenary.nvim
Config
g:nvimdev_auto_cd (default 1)
Automatically :cd to the Neovim root after init.
Commands
NvimTestRun [all]: Run the test in the buffer the cursor is inside. Works for it and describe blocks.
NvimTestClear: Clear test result decorations in buffer
Useful plugins
- nvim-cmp: Completions!
- cmp-nvim-lsp: LSP completion source!
- nvim-lspconfig: LSP configuration for clangd and lua-language-server.
- nvim-treesitter: Better syntax highlighting for C and Lua files.
- neodev.nvim: Neovim Lua development.