Explorar o código

fix(lsp): restore float border (#4274)

Alexey Svirschevskiy %!s(int64=2) %!d(string=hai) anos
pai
achega
01acdde705
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lua/lvim/lsp/init.lua

+ 1 - 1
lua/lvim/lsp/init.lua

@@ -113,7 +113,7 @@ function M.setup()
   autocmds.configure_format_on_save()
 
   local function set_handler_opts_if_not_set(name, handler, opts)
-    if debug.getinfo(vim.lsp.handlers[name], "S").source:match(vim.env.VIMRUNTIME) then
+    if debug.getinfo(vim.lsp.handlers[name], "S").source:find(vim.env.VIMRUNTIME, 1, true) then
       vim.lsp.handlers[name] = vim.lsp.with(handler, opts)
     end
   end