add: LspInfo window borders

This commit is contained in:
siduck 2022-05-14 11:18:29 +05:30
parent 96cd08ef45
commit 970ddf79e5
1 changed files with 10 additions and 0 deletions

View File

@ -8,6 +8,16 @@ local M = {}
require("plugins.configs.others").lsp_handlers()
-- Borders for LspInfo winodw
local win = require "lspconfig.ui.windows"
local _default_opts = win.default_opts
win.default_opts = function(options)
local opts = _default_opts(options)
opts.border = "double"
return opts
end
function M.on_attach(client, _)
client.resolved_capabilities.document_formatting = false
client.resolved_capabilities.document_range_formatting = false