nushell-plugins/nu_plugin_highlight/syntaxes/nushell
2025-06-27 02:31:23 +01:00
..
Example-LSP.sublime-settings chore: add plugins 2025-06-27 02:31:23 +01:00
export.nu chore: add plugins 2025-06-27 02:31:23 +01:00
LICENSE chore: add plugins 2025-06-27 02:31:23 +01:00
nuComments.tmPreferences chore: add plugins 2025-06-27 02:31:23 +01:00
nushell.sublime-settings chore: add plugins 2025-06-27 02:31:23 +01:00
nushell.sublime-syntax chore: add plugins 2025-06-27 02:31:23 +01:00
README.md chore: add plugins 2025-06-27 02:31:23 +01:00
sublime-color-scheme chore: add plugins 2025-06-27 02:31:23 +01:00

Nushell syntax highlight for sublime text

  • Just copied matlab syntax file and modified it for nushell
  • Use nushell lsp language server (need lsp sublime package)

Installation

  1. In sublime text install the LSP package.
  2. After cloning and cd-ing into the directory, in nushell run (tested in Ubuntu 20.04):
ls 
| find -v README & export & color 
| get name 
| ansi strip 
| each {|file| 
	cp -f $file (~/.config/sublime-text/Packages/User | path expand)
  }
  1. In sublime, open Preferences > Customize Color Scheme and add the contents of sublime-color-scheme. Modify to your liking.

Update commands

If you need to update nushell functions or add your custom commands and aliases, run:

chmod +x export.nu 
./export.nu