]> nyquistdev.net Git - nvim-config.git/commitdiff
first commit main
authorA-Larsen <austin.larsen@mailfence.com>
Fri, 16 Oct 2026 17:52:39 +0000 (13:52 -0400)
committerA-Larsen <austin.larsen@mailfence.com>
Fri, 16 Oct 2026 17:52:39 +0000 (13:52 -0400)
README.adoc
lua/config/lazy.lua
plugin/lsp.lua
rendered.html

index 262692b57b9fff638c353538d95ea8c6fe7d0a95..60a0bc50ea9e6825614f19a52199be4f749d7e70 100644 (file)
@@ -1,2 +1 @@
-= Austin's nvim configuration files
-
+= Austins nvim configuration files
index 1982439f9a0ed45a983a3fc1e44bb35be6a7870f..8f619a3428abe7ed45bc34b51c079de627338224 100644 (file)
@@ -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'},
index fb6d7f8759b594579d93ead47acb89e96aa379bc..5b34cf138a48f0f0015a4538a303c104b4c5ca1e 100644 (file)
@@ -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,
+})
index be880e4fd8c1d2e5c59844806e7dbb4a9ed8bdc4..5a9b52a00bf561ec182eeb0b46387b0ccd32ad4e 100644 (file)
@@ -5,7 +5,7 @@
 <meta http-equiv="X-UA-Compatible" content="IE=edge">
 <meta name="viewport" content="width=device-width, initial-scale=1.0">
 <meta name="generator" content="Asciidoctor 2.0.20">
-<title>Austin&#8217;s nvim configuration files</title>
+<title>Austins nvim configuration files</title>
 <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700">
 <style>
 /*! Asciidoctor default stylesheet | MIT License | https://asciidoctor.org */
@@ -1020,7 +1020,7 @@ window.addEventListener("message", (e) => {
 </head>
 <body class="article">
 <div id="header">
-<h1>Austin&#8217;s nvim configuration files</h1>
+<h1>Austins nvim configuration files</h1>
 </div>
 <div id="content">