From 130442712bcf0d97c3e7635c582b5d397dabfd7c Mon Sep 17 00:00:00 2001 From: Akianonymus Date: Thu, 18 Aug 2022 00:31:31 +0530 Subject: [PATCH] Fix some lsp warnings --- lua/core/utils.lua | 2 +- lua/plugins/configs/alpha.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/core/utils.lua b/lua/core/utils.lua index 7d4fd2c..930f816 100644 --- a/lua/core/utils.lua +++ b/lua/core/utils.lua @@ -132,7 +132,7 @@ end M.load_override = function(default_table, plugin_name) local user_table = M.load_config().plugins.override[plugin_name] or {} 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 M.packer_sync = function(...) diff --git a/lua/plugins/configs/alpha.lua b/lua/plugins/configs/alpha.lua index e2caab6..6ddb0c2 100644 --- a/lua/plugins/configs/alpha.lua +++ b/lua/plugins/configs/alpha.lua @@ -27,7 +27,7 @@ local function button(sc, txt, keybind) type = "button", val = txt, 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) end, opts = opts,