add: remove of unused plugins

This commit is contained in:
asep komarudin 2024-03-02 18:32:21 +07:00
parent 02ea286c83
commit 53b42062e3
7 changed files with 25 additions and 17 deletions

View file

@ -31,7 +31,7 @@ vim.g.pcode_clear_lualine = 0
-- 0 disable progress
-- 1 lualine lsp progress
-- 2 fidget progress
vim.g.pcode_progress = 2
vim.g.pcode_progress = 1
-- style
-- 0 = default

View file

@ -137,6 +137,12 @@ return {
end
end
local lsp_progress = {}
local data_ok, lspprogress = pcall(require, "lsp-progress")
if data_ok then
lsp_progress = lspprogress.progress
end
require("lualine").setup({
options = {
theme = "auto",
@ -162,7 +168,7 @@ return {
mode,
},
lualine_b = { get_branch },
lualine_c = { lsp_info, diagnostics },
lualine_c = { lsp_info, diagnostics, lsp_progress },
lualine_x = { diff, spaces, "filetype" },
lualine_y = { "progress" },
lualine_z = {

View file

@ -240,13 +240,13 @@ return {
-- end,
-- },
-- for Speed up loading Lua modules in Neovim to improve startup time.
{
"lewis6991/impatient.nvim",
event = "BufWinEnter",
config = function()
require("user.impatient")
end,
},
-- {
-- "lewis6991/impatient.nvim",
-- event = "BufWinEnter",
-- config = function()
-- require("user.impatient")
-- end,
-- },
-- for live server html,css,js
-- {
-- "manzeloth/live-server",
@ -385,5 +385,5 @@ return {
end,
},
-- remove duplicate
{ "tpope/vim-repeat", event = "InsertEnter" },
-- { "tpope/vim-repeat", event = "InsertEnter" },
}

View file

@ -44,11 +44,15 @@ return {
config = function()
require("lsp-progress").setup({
client_format = function(client_name, spinner, series_messages)
return #series_messages > 0 and (spinner .. " " .. table.concat(series_messages, ", ")) or nil
return #series_messages > 0
and (spinner .. " " .. string.sub(table.concat(series_messages, ", "), 1, 25) .. " ...")
or nil
end,
format = function(client_messages)
local sign = ""
return #client_messages > 0 and (sign .. " " .. table.concat(client_messages, " ")) or sign
return #client_messages > 0
and (sign .. " " .. string.sub(table.concat(client_messages, " "), 1, 25) .. " ...")
or sign
end,
})
end,

View file

@ -54,7 +54,7 @@ return {
end,
},
-- for delete buffers (close files) without closing your windows or messing up your layout.
{ "moll/vim-bbye", event = "InsertEnter" },
-- { "moll/vim-bbye", event = "InsertEnter" },
-- for view terminal
{
"akinsho/toggleterm.nvim",

View file

@ -62,3 +62,4 @@ vim.opt.runtimepath:remove("/usr/share/vim/vimfiles") -- separate vim plugins fr
-- "i-ci:ver25-Cursor/lCursor-blinkwait1000-blinkon100-blinkoff100",
-- "r:hor50-Cursor/lCursor-blinkwait100-blinkon100-blinkoff100",
-- }
vim.loader.enable()