Fix some lsp warnings
This commit is contained in:
parent
5e81ae8379
commit
130442712b
@ -132,7 +132,7 @@ end
|
|||||||
M.load_override = function(default_table, plugin_name)
|
M.load_override = function(default_table, plugin_name)
|
||||||
local user_table = M.load_config().plugins.override[plugin_name] or {}
|
local user_table = M.load_config().plugins.override[plugin_name] or {}
|
||||||
user_table = type(user_table) == "table" and user_table or user_table()
|
user_table = type(user_table) == "table" and user_table or user_table()
|
||||||
return merge_tb("force", default_table, user_table)
|
return merge_tb("force", default_table, user_table) or {}
|
||||||
end
|
end
|
||||||
|
|
||||||
M.packer_sync = function(...)
|
M.packer_sync = function(...)
|
||||||
|
@ -27,7 +27,7 @@ local function button(sc, txt, keybind)
|
|||||||
type = "button",
|
type = "button",
|
||||||
val = txt,
|
val = txt,
|
||||||
on_press = function()
|
on_press = function()
|
||||||
local key = vim.api.nvim_replace_termcodes(sc_, true, false, true)
|
local key = vim.api.nvim_replace_termcodes(sc_, true, false, true) or ""
|
||||||
vim.api.nvim_feedkeys(key, "normal", false)
|
vim.api.nvim_feedkeys(key, "normal", false)
|
||||||
end,
|
end,
|
||||||
opts = opts,
|
opts = opts,
|
||||||
|
Loading…
Reference in New Issue
Block a user