return { templates_dir = join_paths(get_runtime_dir(), "site", "after", "ftplugin"), diagnostics = { signs = { active = true, values = { { name = "DiagnosticSignError", text = "" }, { name = "DiagnosticSignWarn", text = "" }, { name = "DiagnosticSignHint", text = "" }, { name = "DiagnosticSignInfo", text = "" }, }, }, virtual_text = true, update_in_insert = false, underline = true, severity_sort = true, float = { focusable = false, style = "minimal", border = "rounded", source = "always", header = "", prefix = "", format = function(d) local t = vim.deepcopy(d) if d.code then t.message = string.format("%s [%s]", t.message, t.code):gsub("1. ", "") end return t.message end, }, }, document_highlight = true, code_lens_refresh = true, float = { focusable = false, style = "minimal", border = "rounded", }, on_attach_callback = nil, on_init_callback = nil, automatic_servers_installation = true, buffer_mappings = { normal_mode = { ["K"] = { "lua vim.lsp.buf.hover()", "Show hover" }, ["gd"] = { "lua vim.lsp.buf.definition()", "Goto Definition" }, ["gD"] = { "lua vim.lsp.buf.declaration()", "Goto declaration" }, ["gr"] = { "lua vim.lsp.buf.references()", "Goto references" }, ["gI"] = { "lua vim.lsp.buf.implementation()", "Goto Implementation" }, ["gs"] = { "lua vim.lsp.buf.signature_help()", "show signature help" }, ["gp"] = { "lua require'lvim.lsp.peek'.Peek('definition')", "Peek definition" }, ["gl"] = { "lua require'lvim.lsp.handlers'.show_line_diagnostics()", "Show line diagnostics", }, }, insert_mode = {}, visual_mode = {}, }, null_ls = { setup = {}, config = {}, }, override = { "angularls", "ansiblels", "ccls", "cssmodules_ls", "csharp_ls", "denols", "ember", "emmet_ls", "eslint", "eslintls", "graphql", "jedi_language_server", "ltex", "phpactor", "pylsp", "quick_lint_js", "rome", "sorbet", "sqlls", "sqls", "solang", "sourcekit", "spectral", "stylelint_lsp", "tailwindcss", "tflint", "volar", }, }