diff --git a/lua/atro/configs/lsp.lua b/lua/atro/configs/lsp.lua index f81f43e..ba47ab3 100644 --- a/lua/atro/configs/lsp.lua +++ b/lua/atro/configs/lsp.lua @@ -49,18 +49,6 @@ M.lsp_configs = { ignore = {}, maxLineLength = 120, }, - rope_completion = { - enabled = true, - }, - rope_autoimport = { - enabled = true, - completions = { - enabled = true, - }, - code_actions = { - enabled = true, - }, - }, }, }, diff --git a/lua/atro/plugins/lsp.lua b/lua/atro/plugins/lsp.lua index ae0c66f..777d9c7 100644 --- a/lua/atro/plugins/lsp.lua +++ b/lua/atro/plugins/lsp.lua @@ -61,14 +61,8 @@ local plugins = { end, }, { - "atropos112/better-diagnostic-virtual-text", - event = "LspAttach", - opts = { - inline = false, - ui = { - above = true, - }, - }, + "sontungexpt/better-diagnostic-virtual-text", + lazy = true, }, } diff --git a/lua/atro/utils/lsp.lua b/lua/atro/utils/lsp.lua index 280ee47..e825319 100644 --- a/lua/atro/utils/lsp.lua +++ b/lua/atro/utils/lsp.lua @@ -4,11 +4,16 @@ local M = {} ---@param bufnr number ---@return nil M.on_attach = function(client, bufnr) + -- Better diagnostic virtual text, needs to take over hover and signature help handlers + require("better-diagnostic-virtual-text.api").setup_buf(bufnr, { + inline = false, + ui = { + above = true, + }, + }) require("inlay-hints").on_attach(client, bufnr) require("nvim-navic").attach(client, bufnr) - -- Better diagnostic virtual text, needs to take over hover and signature help handlers - require("better-diagnostic-virtual-text.api").setup_buf(bufnr, nil) local lsp = vim.lsp lsp.handlers["textDocument/signatureHelp"] = lsp.with(lsp.handlers.signature_help, { border = "single",