-= Austin's nvim configuration files
-
+= Austins nvim configuration files
-- 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'},
-- 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,
+})
<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’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 */
</head>
<body class="article">
<div id="header">
-<h1>Austin’s nvim configuration files</h1>
+<h1>Austins nvim configuration files</h1>
</div>
<div id="content">