From: A-Larsen Date: Fri, 16 Oct 2026 17:52:39 +0000 (-0400) Subject: first commit X-Git-Url: https://nyquistdev.net/git/?a=commitdiff_plain;h=HEAD;p=nvim-config.git first commit --- diff --git a/README.adoc b/README.adoc index 262692b..60a0bc5 100644 --- a/README.adoc +++ b/README.adoc @@ -1,2 +1 @@ -= Austin's nvim configuration files - += Austins nvim configuration files diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua index 1982439..8f619a3 100644 --- a/lua/config/lazy.lua +++ b/lua/config/lazy.lua @@ -27,7 +27,17 @@ require("lazy").setup({ -- import your plugins { import = "config.plugins" }, { "folke/lazydev.nvim" }, - {"nvim-treesitter/nvim-treesitter", branch = 'master', lazy = false, build = ":TSUpdate"}, + { + "nvim-treesitter/nvim-treesitter", + branch = 'master', + lazy = false, + build = ":TSUpdate", + opts = { + ensure_installed = { "odin", "c", "lua" }, -- add "odin" here + highlight = { enable = true }, + indent = { enable = true }, + }, + }, {'mbbill/undotree'}, {'tpope/vim-fugitive'}, {'tpope/vim-commentary'}, diff --git a/plugin/lsp.lua b/plugin/lsp.lua index fb6d7f8..5b34cf1 100644 --- a/plugin/lsp.lua +++ b/plugin/lsp.lua @@ -1,2 +1,16 @@ -- vim.lsp.enable("clangd") -- vim.lsp.enable("lua_ls") +-- Vanilla Neovim LSP configuration for Odin (ols) +vim.api.nvim_create_autocmd("FileType", { + pattern = "odin", + callback = function() + -- Ensure the language server binary is available in your PATH (Mason links it here) + local ols_path = vim.fn.stdpath("data") .. "/mason/bin/ols" + + vim.lsp.start({ + name = "ols", + cmd = { ols_path }, + root_dir = vim.fs.dirname(vim.fs.find({ "ols.json", ".git" }, { upward = true })[1]) or vim.fn.getcwd(), + }) + end, +}) diff --git a/rendered.html b/rendered.html index be880e4..5a9b52a 100644 --- a/rendered.html +++ b/rendered.html @@ -5,7 +5,7 @@ -Austin’s nvim configuration files +Austins nvim configuration files