Skip to content

Commit 710aa77

Browse files
committed
feat(pack): add odin language pack
1 parent 6cf7019 commit 710aa77

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Odin Language Pack
2+
3+
**Requirements:** `odin` should be in your `PATH` to use the language server
4+
5+
This plugin pack does the following:
6+
7+
- Adds `odin` Treesitter parser
8+
- Adds [`ols`](https://github.com/DanielGavin/ols) language server
9+
- Formatting is handled by `odinfmt`, which is bundled with `ols`
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
return {
2+
{
3+
"AstroNvim/astrocore",
4+
optional = true,
5+
---@type AstroCoreOpts
6+
opts = {
7+
treesitter = { ensure_installed = { "odin" } },
8+
},
9+
},
10+
{
11+
"WhoIsSethDaniel/mason-tool-installer.nvim",
12+
optional = true,
13+
opts = function(_, opts)
14+
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "ols" })
15+
end,
16+
},
17+
{
18+
"mason-org/mason-lspconfig.nvim",
19+
optional = true,
20+
opts = function(_, opts)
21+
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "ols" })
22+
end,
23+
},
24+
}

0 commit comments

Comments
 (0)