Skip to content

Commit b22f8a5

Browse files
authored
feat(pack): add nushell language pack (#1601)
* feat: add nushell language pack * chore: remove unused handlers section and specify nushell in readme
1 parent 8930cf0 commit b22f8a5

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
}

0 commit comments

Comments
 (0)