From f25365eaec7d792a017a587acdf957a21275df30 Mon Sep 17 00:00:00 2001 From: Samuel O'Neal Date: Tue, 7 Jul 2026 14:33:38 -0600 Subject: [PATCH] added Odin support --- lua/plugins/odin.lua | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 lua/plugins/odin.lua diff --git a/lua/plugins/odin.lua b/lua/plugins/odin.lua new file mode 100644 index 0000000..6c62915 --- /dev/null +++ b/lua/plugins/odin.lua @@ -0,0 +1,44 @@ +-- Odin Language Support + +return { + -- Treesitter + { + "nvim-treesitter/nvim-treesitter", + opts = function(_, opts) + if type(opts.ensure_installed) == "table" then + vim.list_extend(opts.ensure_installed, { "odin" }) + end + end, + }, + + -- Mason + { + "mason-org/mason.nvim", + opts = function(_, opts) + opts.ensure_installed = opts.ensure_installed or {} + vim.list_extend(opts.ensure_installed, { "ols", "odinfmt" }) + end, + }, + + -- LSP Config + { + "neovim/nvim-lspconfig", + opts = { + servers = { + ols = { + root_markers = { "ols.json", "odinfmt.json", ".git" }, + }, + }, + }, + }, + + -- Conform + { + "stevearc/conform.nvim", + opts = { + formatters_by_ft = { + odin = { "odinfmt" }, + }, + }, + }, +} -- 2.52.0