summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lua/core/lualine/components.lua5
-rw-r--r--lua/plugins.lua2
2 files changed, 5 insertions, 2 deletions
diff --git a/lua/core/lualine/components.lua b/lua/core/lualine/components.lua
index 894d9e9b..3d3ac9af 100644
--- a/lua/core/lualine/components.lua
+++ b/lua/core/lualine/components.lua
@@ -81,9 +81,12 @@ return {
},
lsp = {
function(msg)
- msg = msg or "LSP Inactive"
+ msg = msg or "LS Inactive"
local buf_clients = vim.lsp.buf_get_clients()
if next(buf_clients) == nil then
+ if #msg == 0 then
+ return "LS Inactive"
+ end
return msg
end
local buf_ft = vim.bo.filetype
diff --git a/lua/plugins.lua b/lua/plugins.lua
index 8a0692f2..98721c6c 100644
--- a/lua/plugins.lua
+++ b/lua/plugins.lua
@@ -116,7 +116,7 @@ return {
"terrortylor/nvim-comment",
event = "BufRead",
config = function()
- require("nvim_comment").setup()
+ require("core.comment").setup()
end,
disable = not lvim.builtin.comment.active,
},