This commit is contained in:
veypi
2025-06-25 17:13:34 +08:00
parent f653915e23
commit a500160bbd
7 changed files with 39 additions and 70 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ if not (vim.uv or vim.loop).fs_stat(lazypath) then
if vim.v.shell_error ~= 0 then
vim.api.nvim_echo({
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
{ out, "WarningMsg" },
{ out, "WarningMsg" },
{ "\nPress any key to exit..." },
}, true, {})
vim.fn.getchar()
@@ -34,7 +34,7 @@ require("lazy").setup({
checker = {
enabled = true, -- check for plugin updates periodically
notify = false, -- notify on update
}, -- automatically check for plugin updates
}, -- automatically check for plugin updates
performance = {
rtp = {
-- disable some rtp plugins
+1 -1
View File
@@ -2,7 +2,7 @@
require("lspconfig").ts_ls.setup({
cmd = { "typescript-language-server", "--stdio" },
filetype = { "javascript" },
filetype = { "javascript", "html" },
})
return {
+7 -7
View File
@@ -88,7 +88,7 @@ return {
hint = icons.diagnostics.Hint,
},
},
{ "filetype", icon_only = true, separator = "", padding = { left = 1, right = 0 } },
{ "filetype", icon_only = true, separator = "", padding = { left = 1, right = 0 } },
{ LazyVim.lualine.pretty_path() },
},
lualine_x = {
@@ -96,25 +96,25 @@ return {
{
function() return require("noice").api.status.command.get() end,
cond = function() return package.loaded["noice"] and require("noice").api.status.command.has() end,
color = function() return LazyVim.ui.fg("Statement") end,
color = function() return Snacks.util.color("Statement") end,
},
-- stylua: ignore
{
function() return require("noice").api.status.mode.get() end,
cond = function() return package.loaded["noice"] and require("noice").api.status.mode.has() end,
color = function() return LazyVim.ui.fg("Constant") end,
color = function() return Snacks.util.color("Constant") end,
},
-- stylua: ignore
{
function() return "" .. require("dap").status() end,
cond = function() return package.loaded["dap"] and require("dap").status() ~= "" end,
color = function() return LazyVim.ui.fg("Debug") end,
color = function() return Snacks.util.color("Debug") end,
},
-- stylua: ignore
{
require("lazy.status").updates,
cond = require("lazy.status").has_updates,
color = function() return LazyVim.ui.fg("Special") end,
color = function() return Snacks.util.color("Special") end,
},
{
"diff",
@@ -136,7 +136,7 @@ return {
},
},
lualine_y = {
{ "progress", separator = " ", padding = { left = 1, right = 0 } },
{ "progress", separator = " ", padding = { left = 1, right = 0 } },
{ "location", padding = { left = 0, right = 1 } },
},
lualine_z = {
@@ -170,5 +170,5 @@ return {
return opts
end,
}
},
}