File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed
Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ # Nushell Language pack
2+ Requires:
3+
4+ - A local [ nufmt] ( https://github.com/nushell/nufmt ) installation
5+ - A local [ nushell] ( https://www.nushell.sh/ ) installation for the LSP
6+
7+ This plugin pack does the following:
8+
9+ - Adds ` nushell ` treesitter parsers
10+ - Adds [ ` nushell ` ] ( https://github.com/nushell/nushell/tree/main/crates/nu-lsp ) language server
11+ - Adds ` nufmt ` as the default formatter for nushell
Original file line number Diff line number Diff line change 1+ return {
2+ {
3+ " nvim-treesitter/nvim-treesitter" ,
4+ optional = true ,
5+ opts = function (_ , opts )
6+ if opts .ensure_installed ~= " all" then
7+ opts .ensure_installed = require (" astrocore" ).list_insert_unique (opts .ensure_installed , { " nu" })
8+ end
9+ end ,
10+ },
11+ {
12+ " AstroNvim/astrolsp" ,
13+ optional = true ,
14+ --- @type AstroLSPOpts
15+ opts = {
16+ servers = { " nushell" },
17+ },
18+ },
19+ {
20+ " stevearc/conform.nvim" ,
21+ optional = true ,
22+ opts = {
23+ formatters_by_ft = {
24+ nu = { " nufmt" },
25+ },
26+ },
27+ },
28+ }
You can’t perform that action at this time.
0 commit comments