-- -- Author : Dennis Eriksen -- File : lua.lua -- Created : 2024-02-15 -- local M = { { -- https://github.com/stevearc/conform.nvim "stevearc/conform.nvim", opts = { formatters_by_ft = { lua = { "stylua" }, }, }, }, } -- Don't load lua_ls if on OpenBSD if vim.loop.os_uname().sysname == "OpenBSD" then -- OpenBSD does not support lua_ls table.insert(M, { { -- https://github.com/neovim/nvim-lspconfig "neovim/nvim-lspconfig", opts = { servers = { lua_ls = { -- don't auto-install lua-ls mason = false, }, }, setup = { -- use a function to return true to disable lsp lua_ls = function() return true end, }, }, }, }) end return M