Skip to content

bougyman/nushell-syntax-vim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nushell-syntax-vim

Nushell syntax highlighting and indentation for Vim

Installation

  • create the ~/.vim directory and required subdirectories if they do not already exist
mkdir -p ~/.vim/ftdetect && \
mkdir -p ~/.vim/ftplugin && \
mkdir -p ~/.vim/syntax && \
mkdir -p ~/.vim/indent
  • copy the .vim-files to their corresponding directories in ~/.vim
  • restart vim, if necessary

Installation using Nushell script (experimental)

  • requires 'nu' to be in your PATH
  • use at your own risk
  • tested with Nushell 0.88.1 on Debian 12 and Windows 11
git clone "https://github.com/elkasztano/nushell-syntax-vim"
cd nushell-syntax-vim
nu install.nu

to uninstall navigate to the 'nushell-syntax-vim' directory, then type

nu uninstall.nu

Notes

I am new to both Nushell and Vimscript, and I am currently learning both at the same time. Please bear in mind that this little project is still very much a work in progress. I couldn't find a Nushell plugin for Vim, so I decided to create one myself. Suggestions for improvement are highly appreciated.

Tested with Vim 9.0

About

Nushell syntax highlighting for Vim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 88.5%
  • Nushell 11.5%