chore(cleanup): removed or commented unused snippits or comments

This commit is contained in:
2026-07-25 18:28:16 +02:00
parent 3b4a464a94
commit 2c7d6acc04
8 changed files with 125 additions and 143 deletions
+3 -9
View File
@@ -7,7 +7,6 @@ local function get_coc_lsp_client()
for _, client in pairs(clients) do
if client["state"] == "running" then
local client_name = client["id"]
-- Remove 'languageserver.' prefix if it exists
client_name = client_name:gsub("^languageserver%.", "")
return client_name
end
@@ -21,7 +20,6 @@ local function spell()
return ""
end
--- show indicator for Chinese IME
local function ime_state()
if vim.g.is_mac then
local layout =
@@ -43,12 +41,10 @@ local diff = function()
local info =
{ added = add_num, modified = modify_num, removed = remove_num }
-- vim.print(info)
return info
end
local virtual_env = function()
-- only show virtual env for Python
if vim.bo.filetype ~= "python" then return "" end
local conda_env = os.getenv "CONDA_DEFAULT_ENV"
@@ -81,10 +77,7 @@ require("lualine").setup {
lualine_b = {
{
"branch",
fmt = function(name, _)
-- truncate branch name in case the name is too long
return string.sub(name, 1, 20)
end,
fmt = function(name, _) return string.sub(name, 1, 20) end,
color = { gui = "italic,bold" },
separator = { right = "" },
},
@@ -132,4 +125,5 @@ require("lualine").setup {
extensions = { "quickfix", "fugitive", "nvim-tree" },
}
vim.o.laststatus = 0 -- required for some reason -> avoid two bar lualine /w tmux
-- also in options, but has to be here as well
vim.o.laststatus = 0;