Skip to content

Commit

Permalink
Adjusted for changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
atropos112 committed Jul 15, 2024
1 parent 9f2deda commit 1d5fca8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 22 deletions.
12 changes: 0 additions & 12 deletions lua/atro/configs/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
},
},
},

Expand Down
10 changes: 2 additions & 8 deletions lua/atro/plugins/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
}

Expand Down
9 changes: 7 additions & 2 deletions lua/atro/utils/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 1d5fca8

Please sign in to comment.