- end,
- opts = {
- -- Automatically format on save
- -- autoformat = false,
- -- LSP Server Settings
- ---@type lspconfig.options
- servers = {
- lua_ls = {
- settings = {
- Lua = {
- diagnostics = {
- disable = { "missing-fields", },
+
+ return {
+ diagnostics = {
+ underline = true,
+ update_in_insert = false,
+ virtual_text = {
+ spacing = 4,
+ source = "if_mani",
+ prefix = "●",
+ },
+ severity_sort = true,
+ signs = {
+ text = {
+ [vim.diagnostic.severity.ERROR] = " ",
+ [vim.diagnostic.severity.WARN] = " ",
+ [vim.diagnostic.severity.HINT] = " ",
+ [vim.diagnostic.severity.INFO] = " ",
+ },
+ },
+ },
+ inlay_hints = { enabled = false, },
+ codelens = { enabled = false, },
+ document_highlight = { enabled = true, },
+ capabilities = {
+ workspace = {
+ fileOperations = {
+ didRename = true,
+ willRename = true,
+ },
+ },
+ },
+ format = {
+ formatting_options = nil,
+ timeout_ms = nil,
+ },
+ -- Automatically format on save
+ -- autoformat = false,
+ -- LSP Server Settings
+ ---@type lspconfig.options
+ servers = {
+ lua_ls = {
+ settings = {
+ Lua = {
+ workspace = { checkThirdParty = false, },
+ codeLens = { enable = true, },
+ completion = { callSnippet = "Replace", },
+ doc = { privateName = { "^_" }, },
+ hint = {
+ enable = true,
+ setType = false,
+ paramType = true,
+ paramName = "Disable",
+ semicolon = "Disable",
+ arrayIndex = "Disable",
+ },
+ diagnostics = {
+ disable = { "missing-fields", },
+ },