nvim-nu
nvim-nu copied to clipboard
Basic editor support for the nushell language
nvim-nu - Basic editor support for the nushell language
Info: This plugin was made for nu version ~0.45. As nushell evolves quickly, the plugin might not work perfectly for later versions. PR's are welcome
Table of contents
- Requirements
- Installation
- Configuration
Requirements
- Neovim version >= 0.5
- A nu binary in your path
- nvim-treesitter installed
- null-ls.nvim if nu-command names shall be suggested
Installation
You can install nvim-nu
with your favorite package manager (or using the native package
feature of vim, see :h packages
).
E.g., if you are using vim-plug, put this in your init.vim
file:
Plug 'LhKipp/nvim-nu', {'do': ':TSInstall nu'}
Don't forget to call setup :smirk:
require('nu').setup{}
Configuration
(Default values are shown)
require('nu').setup({
complete_cmd_names = true, -- requires https://github.com/jose-elias-alvarez/null-ls.nvim
})