Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions lua/astrocommunity/pack/odin/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Odin Language Pack

**Requirements:** `odin` should be in your `PATH` to use the language server

This plugin pack does the following:

- Adds `odin` Treesitter parser
- Adds [`ols`](https://github.com/DanielGavin/ols) language server
- Formatting is handled by `odinfmt`, which is bundled with `ols`
24 changes: 24 additions & 0 deletions lua/astrocommunity/pack/odin/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
return {
{
"AstroNvim/astrocore",
optional = true,
---@type AstroCoreOpts
opts = {
treesitter = { ensure_installed = { "odin" } },
},
},
{
"WhoIsSethDaniel/mason-tool-installer.nvim",
optional = true,
opts = function(_, opts)
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "ols" })
end,
},
{
"mason-org/mason-lspconfig.nvim",
optional = true,
opts = function(_, opts)
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "ols" })
end,
},
}
Loading