|
@@ -21,25 +21,25 @@ vim.api.nvim_set_hl(0, "SLBranchName", { fg = normal_hl.foreground, bg = cursorl
|
|
vim.api.nvim_set_hl(0, "SLProgress", { fg = "#ECBE7B", bg = statusline_hl.background })
|
|
vim.api.nvim_set_hl(0, "SLProgress", { fg = "#ECBE7B", bg = statusline_hl.background })
|
|
|
|
|
|
local location_color = nil
|
|
local location_color = nil
|
|
-local branch = ""
|
|
|
|
-local separator = "│"
|
|
|
|
|
|
+local branch = lvim.icons.git.Branch
|
|
|
|
+local separator = lvim.icons.ui.LineMiddle
|
|
|
|
|
|
if lvim.colorscheme == "tokyonight" then
|
|
if lvim.colorscheme == "tokyonight" then
|
|
location_color = "SLBranchName"
|
|
location_color = "SLBranchName"
|
|
- branch = "%#SLGitIcon#" .. "" .. "%*" .. "%#SLBranchName#"
|
|
|
|
|
|
+ branch = "%#SLGitIcon#" .. lvim.icons.git.Branch .. "%*" .. "%#SLBranchName#"
|
|
|
|
|
|
local status_ok, tnc = pcall(require, "tokyonight.colors")
|
|
local status_ok, tnc = pcall(require, "tokyonight.colors")
|
|
if status_ok then
|
|
if status_ok then
|
|
local tncolors = tnc.setup { transform = true }
|
|
local tncolors = tnc.setup { transform = true }
|
|
vim.api.nvim_set_hl(0, "SLSeparator", { fg = cursorline_hl.background, bg = tncolors.black })
|
|
vim.api.nvim_set_hl(0, "SLSeparator", { fg = cursorline_hl.background, bg = tncolors.black })
|
|
- separator = "%#SLSeparator#" .. "│" .. "%*"
|
|
|
|
|
|
+ separator = "%#SLSeparator#" .. lvim.icons.ui.LineMiddle .. "%*"
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
|
|
return {
|
|
return {
|
|
mode = {
|
|
mode = {
|
|
function()
|
|
function()
|
|
- return " "
|
|
|
|
|
|
+ return " " .. lvim.icons.ui.Target .. " "
|
|
end,
|
|
end,
|
|
padding = { left = 0, right = 0 },
|
|
padding = { left = 0, right = 0 },
|
|
color = {},
|
|
color = {},
|
|
@@ -58,7 +58,11 @@ return {
|
|
diff = {
|
|
diff = {
|
|
"diff",
|
|
"diff",
|
|
source = diff_source,
|
|
source = diff_source,
|
|
- symbols = { added = " ", modified = " ", removed = " " },
|
|
|
|
|
|
+ symbols = {
|
|
|
|
+ added = lvim.icons.git.LineAdded .. " ",
|
|
|
|
+ modified = lvim.icons.git.LineModified .. " ",
|
|
|
|
+ removed = lvim.icons.git.LineRemoved .. " ",
|
|
|
|
+ },
|
|
padding = { left = 2, right = 1 },
|
|
padding = { left = 2, right = 1 },
|
|
diff_color = {
|
|
diff_color = {
|
|
added = { fg = colors.green },
|
|
added = { fg = colors.green },
|
|
@@ -73,7 +77,9 @@ return {
|
|
if vim.bo.filetype == "python" then
|
|
if vim.bo.filetype == "python" then
|
|
local venv = os.getenv "CONDA_DEFAULT_ENV" or os.getenv "VIRTUAL_ENV"
|
|
local venv = os.getenv "CONDA_DEFAULT_ENV" or os.getenv "VIRTUAL_ENV"
|
|
if venv then
|
|
if venv then
|
|
- return string.format(" (%s)", utils.env_cleanup(venv))
|
|
|
|
|
|
+ local icons = require "nvim-web-devicons"
|
|
|
|
+ local py_icon, _ = icons.get_icon ".py"
|
|
|
|
+ return string.format(" " .. py_icon .. " (%s)", utils.env_cleanup(venv))
|
|
end
|
|
end
|
|
end
|
|
end
|
|
return ""
|
|
return ""
|
|
@@ -84,12 +90,17 @@ return {
|
|
diagnostics = {
|
|
diagnostics = {
|
|
"diagnostics",
|
|
"diagnostics",
|
|
sources = { "nvim_diagnostic" },
|
|
sources = { "nvim_diagnostic" },
|
|
- symbols = { error = " ", warn = " ", info = " ", hint = " " },
|
|
|
|
|
|
+ symbols = {
|
|
|
|
+ error = lvim.icons.diagnostics.BoldError .. " ",
|
|
|
|
+ warn = lvim.icons.diagnostics.BoldWarning .. " ",
|
|
|
|
+ info = lvim.icons.diagnostics.BoldInformation .. " ",
|
|
|
|
+ hint = lvim.icons.diagnostics.BoldHint .. " ",
|
|
|
|
+ },
|
|
-- cond = conditions.hide_in_width,
|
|
-- cond = conditions.hide_in_width,
|
|
},
|
|
},
|
|
treesitter = {
|
|
treesitter = {
|
|
function()
|
|
function()
|
|
- return ""
|
|
|
|
|
|
+ return lvim.icons.ui.Tree
|
|
end,
|
|
end,
|
|
color = function()
|
|
color = function()
|
|
local buf = vim.api.nvim_get_current_buf()
|
|
local buf = vim.api.nvim_get_current_buf()
|
|
@@ -148,7 +159,7 @@ return {
|
|
spaces = {
|
|
spaces = {
|
|
function()
|
|
function()
|
|
local shiftwidth = vim.api.nvim_buf_get_option(0, "shiftwidth")
|
|
local shiftwidth = vim.api.nvim_buf_get_option(0, "shiftwidth")
|
|
- return " " .. shiftwidth
|
|
|
|
|
|
+ return lvim.icons.ui.Tab .. " " .. shiftwidth
|
|
end,
|
|
end,
|
|
separator = separator,
|
|
separator = separator,
|
|
padding = 1,
|
|
padding = 1,
|