add: update patch file

This commit is contained in:
asep.komarudin 2024-04-04 12:16:40 +07:00
parent 76117ededa
commit ecebcfe40c
3 changed files with 119 additions and 115 deletions

View file

@ -10,23 +10,23 @@
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" }, "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" }, "cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
"code_runner.nvim": { "branch": "main", "commit": "e40f651e98a0a12fcd44bf54a2ed258cfee5a914" }, "code_runner.nvim": { "branch": "main", "commit": "e40f651e98a0a12fcd44bf54a2ed258cfee5a914" },
"codeium.vim": { "branch": "main", "commit": "bef9cbaa5c19ab85d8048f364bfc0ac8c7ab335d" }, "codeium.vim": { "branch": "main", "commit": "76790ba8d1b8b3287f72366ea5f55c1d76e6114e" },
"dressing.nvim": { "branch": "master", "commit": "42d767b04c50a6966c9633e3968bc65c0c2f2bfc" }, "dressing.nvim": { "branch": "master", "commit": "42d767b04c50a6966c9633e3968bc65c0c2f2bfc" },
"friendly-snippets": { "branch": "main", "commit": "dcd4a586439a1c81357d5b9d26319ae218cc9479" }, "friendly-snippets": { "branch": "main", "commit": "ea068f1becd91bcd4591fceb6420d4335e2e14d3" },
"gitsigns.nvim": { "branch": "main", "commit": "6ef8c54fb526bf3a0bc4efb0b2fe8e6d9a7daed2" }, "gitsigns.nvim": { "branch": "main", "commit": "6ef8c54fb526bf3a0bc4efb0b2fe8e6d9a7daed2" },
"indent-blankline.nvim": { "branch": "master", "commit": "3d08501caef2329aba5121b753e903904088f7e6" }, "indent-blankline.nvim": { "branch": "master", "commit": "3d08501caef2329aba5121b753e903904088f7e6" },
"lazy.nvim": { "branch": "main", "commit": "bef521ac89c8d423f9d092e37b58e8af0c099309" }, "lazy.nvim": { "branch": "main", "commit": "bef521ac89c8d423f9d092e37b58e8af0c099309" },
"lsp-progress.nvim": { "branch": "main", "commit": "1c37b1cd0611563a767f0a340d61f265c4c54ecd" }, "lsp-progress.nvim": { "branch": "main", "commit": "83b16a9791fa788c0a7ca90374118ed15d2c09ed" },
"lualine.nvim": { "branch": "master", "commit": "b5e8bb642138f787a2c1c5aedc2a78cb2cebbd67" }, "lualine.nvim": { "branch": "master", "commit": "b5e8bb642138f787a2c1c5aedc2a78cb2cebbd67" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "2ba17cecfde8b8c7c7c287909a1e4de895223df6" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "2ba17cecfde8b8c7c7c287909a1e4de895223df6" },
"mason-null-ls.nvim": { "branch": "main", "commit": "e270134d83ba59425edc53356c6fd337b61bb8dd" }, "mason-null-ls.nvim": { "branch": "main", "commit": "e270134d83ba59425edc53356c6fd337b61bb8dd" },
"mason.nvim": { "branch": "main", "commit": "c43eeb5614a09dc17c03a7fb49de2e05de203924" }, "mason.nvim": { "branch": "main", "commit": "c43eeb5614a09dc17c03a7fb49de2e05de203924" },
"noice.nvim": { "branch": "main", "commit": "0cbe3f88d038320bdbda3c4c5c95f43a13c3aa12" }, "noice.nvim": { "branch": "main", "commit": "0cbe3f88d038320bdbda3c4c5c95f43a13c3aa12" },
"none-ls-extras.nvim": { "branch": "main", "commit": "4d1b26b963edb82c45ed261d988f9e72253c3469" }, "none-ls-extras.nvim": { "branch": "main", "commit": "f0746bf4f1a21d6e1d2002f671fb9b46d2146de7" },
"none-ls.nvim": { "branch": "main", "commit": "18910d09d21d7df339805343bfe4a2b2e41c057b" }, "none-ls.nvim": { "branch": "main", "commit": "0d42ba8d506242b2252d2d2885a7f6f4f5b2bcb2" },
"nui.nvim": { "branch": "main", "commit": "a0fd35fcbb4cb479366f1dc5f20145fd718a3733" }, "nui.nvim": { "branch": "main", "commit": "a0fd35fcbb4cb479366f1dc5f20145fd718a3733" },
"nvim-autopairs": { "branch": "master", "commit": "dbfc1c34bed415906395db8303c71039b3a3ffb4" }, "nvim-autopairs": { "branch": "master", "commit": "dbfc1c34bed415906395db8303c71039b3a3ffb4" },
"nvim-cmp": { "branch": "main", "commit": "7aa3f71932c419d716290e132cacbafbaf5bea1c" }, "nvim-cmp": { "branch": "main", "commit": "ce16de5665c766f39c271705b17fff06f7bcb84f" },
"nvim-colorizer.lua": { "branch": "master", "commit": "85855b38011114929f4058efc97af1059ab3e41d" }, "nvim-colorizer.lua": { "branch": "master", "commit": "85855b38011114929f4058efc97af1059ab3e41d" },
"nvim-lspconfig": { "branch": "master", "commit": "cf3dd4a290084a868fac0e2e876039321d57111c" }, "nvim-lspconfig": { "branch": "master", "commit": "cf3dd4a290084a868fac0e2e876039321d57111c" },
"nvim-material-icon": { "branch": "main", "commit": "602088c2682e61cbebd7191de7dc88bfa90c6890" }, "nvim-material-icon": { "branch": "main", "commit": "602088c2682e61cbebd7191de7dc88bfa90c6890" },
@ -38,14 +38,11 @@
"nvim-ts-autotag": { "branch": "main", "commit": "531f48334c422222aebc888fd36e7d109cb354cd" }, "nvim-ts-autotag": { "branch": "main", "commit": "531f48334c422222aebc888fd36e7d109cb354cd" },
"nvim-ts-context-commentstring": { "branch": "main", "commit": "734ebad31c81c6198dfe102aa23280937c937c42" }, "nvim-ts-context-commentstring": { "branch": "main", "commit": "734ebad31c81c6198dfe102aa23280937c937c42" },
"nvim-ts-rainbow2": { "branch": "master", "commit": "b3120cd5ae9ca524af9cb602f41e12e301fa985f" }, "nvim-ts-rainbow2": { "branch": "master", "commit": "b3120cd5ae9ca524af9cb602f41e12e301fa985f" },
"nvim-ufo": { "branch": "main", "commit": "95a148d9b3c02facce59c2050fd20fa6e8eb2cb6" },
"nvim-web-devicons": { "branch": "master", "commit": "a55b801b7ef5719ca25692c3a0a5447fdfb692ed" }, "nvim-web-devicons": { "branch": "master", "commit": "a55b801b7ef5719ca25692c3a0a5447fdfb692ed" },
"onedark.nvim": { "branch": "master", "commit": "1230aaf2a427b2c5b73aba6e4a9a5881d3e69429" }, "onedark.nvim": { "branch": "master", "commit": "1230aaf2a427b2c5b73aba6e4a9a5881d3e69429" },
"plenary.nvim": { "branch": "master", "commit": "50012918b2fc8357b87cff2a7f7f0446e47da174" }, "plenary.nvim": { "branch": "master", "commit": "50012918b2fc8357b87cff2a7f7f0446e47da174" },
"promise-async": { "branch": "main", "commit": "38a4575da9497326badd3995e768b4ccf0bb153e" },
"smart-splits.nvim": { "branch": "master", "commit": "f6fcb79527872e9330c554915af2ca511c388390" }, "smart-splits.nvim": { "branch": "master", "commit": "f6fcb79527872e9330c554915af2ca511c388390" },
"statuscol.nvim": { "branch": "main", "commit": "d954893262a57a92e46edd87de67e2b3fe72305e" }, "telescope.nvim": { "branch": "master", "commit": "4626aaa2bcfdacf55fd6d44b430e2df81b2403ff" },
"telescope.nvim": { "branch": "master", "commit": "1bb28df3cfc241b961331f00dcb8d5b45fe3e4f0" },
"toggleterm.nvim": { "branch": "main", "commit": "193786e0371e3286d3bc9aa0079da1cd41beaa62" }, "toggleterm.nvim": { "branch": "main", "commit": "193786e0371e3286d3bc9aa0079da1cd41beaa62" },
"vim-illuminate": { "branch": "master", "commit": "305bf07b919ac526deb5193280379e2f8b599926" }, "vim-illuminate": { "branch": "master", "commit": "305bf07b919ac526deb5193280379e2f8b599926" },
"vim-startuptime": { "branch": "master", "commit": "97a88e688482a09c3c4b777d07b509b328a5ec29" }, "vim-startuptime": { "branch": "master", "commit": "97a88e688482a09c3c4b777d07b509b328a5ec29" },

View file

@ -15,7 +15,7 @@ return {
dependencies = { dependencies = {
{ "MunifTanjim/nui.nvim", enabled = use_noice }, { "MunifTanjim/nui.nvim", enabled = use_noice },
}, },
-- event = "BufWinEnter", event = "BufWinEnter",
opts = { opts = {
messages = { messages = {
enabled = false, enabled = false,
@ -36,7 +36,13 @@ return {
}, },
}, },
init = function() init = function()
require("lazy").load({ plugins = { "noice.nvim" } }) -- load if mode command mode
-- vim.api.nvim_create_autocmd("CmdlineEnter", {
-- callback = function()
-- require("lazy").load({ plugins = { "noice.nvim" } })
-- end,
-- })
-- require("lazy").load({ plugins = { "noice.nvim" } })
end, end,
keys = { keys = {
{ {
@ -97,6 +103,7 @@ return {
{ {
"hrsh7th/cmp-cmdline", "hrsh7th/cmp-cmdline",
event = "VeryLazy", event = "VeryLazy",
enabled = use_noice,
config = function() config = function()
local cmp = require("cmp") local cmp = require("cmp")
local mapping = { local mapping = {

View file

@ -1,105 +1,105 @@
return { return {
"kevinhwang91/nvim-ufo", -- "kevinhwang91/nvim-ufo",
dependencies = { -- dependencies = {
"kevinhwang91/promise-async", -- "kevinhwang91/promise-async",
{ -- {
"luukvbaal/statuscol.nvim", -- "luukvbaal/statuscol.nvim",
config = function() -- config = function()
local builtin = require("statuscol.builtin") -- local builtin = require("statuscol.builtin")
require("statuscol").setup({ -- require("statuscol").setup({
-- -- relculright = true,
-- -- segments = {
-- -- { text = { builtin.foldfunc }, click = "v:lua.ScFa" },
-- -- { text = { "%s" }, click = "v:lua.ScSa" },
-- -- { text = { builtin.lnumfunc, " " }, click = "v:lua.ScLa" },
-- -- },
-- setopt = true,
-- relculright = true, -- relculright = true,
-- segments = { -- segments = {
-- { text = { builtin.foldfunc }, click = "v:lua.ScFa" },
-- { text = { "%s" }, click = "v:lua.ScSa" }, -- { text = { "%s" }, click = "v:lua.ScSa" },
-- {
-- text = { builtin.foldfunc },
-- condition = { builtin.not_empty, true, builtin.not_empty },
-- click = "v:lua.ScFa",
-- },
-- { text = { builtin.lnumfunc, " " }, click = "v:lua.ScLa" }, -- { text = { builtin.lnumfunc, " " }, click = "v:lua.ScLa" },
-- }, -- },
setopt = true, -- })
relculright = true, -- end,
segments = { -- },
{ text = { "%s" }, click = "v:lua.ScSa" }, -- },
{ -- lazy = true,
text = { builtin.foldfunc }, -- -- event = "BufReadPost",
condition = { builtin.not_empty, true, builtin.not_empty }, -- event = "BufWinEnter",
click = "v:lua.ScFa", -- config = function()
}, -- vim.o.foldcolumn = "1" -- '0' is not bad
{ text = { builtin.lnumfunc, " " }, click = "v:lua.ScLa" }, -- vim.o.foldlevel = 99 -- Using ufo provider need a large value, feel free to decrease the value
}, -- vim.o.foldlevelstart = 99
}) -- vim.o.foldenable = true
end, -- -- vim.o.fillchars = [[eob: ,fold: ,foldopen:,foldsep: ,foldclose:]]
}, -- vim.o.fillchars = [[eob: ,fold: ,foldopen:,foldsep: ,foldclose:]]
}, --
lazy = true, -- -- these are "extra", change them as you like
-- event = "BufReadPost", -- vim.keymap.set("n", "zR", require("ufo").openAllFolds)
event = "BufWinEnter", -- vim.keymap.set("n", "zM", require("ufo").closeAllFolds)
config = function() -- vim.cmd("highlight FoldColumn guifg=" .. vim.fn.synIDattr(vim.fn.synIDtrans(vim.fn.hlID("Comment")), "fg"))
vim.o.foldcolumn = "1" -- '0' is not bad -- -- Option 3: treesitter as a main provider instead
vim.o.foldlevel = 99 -- Using ufo provider need a large value, feel free to decrease the value -- -- Only depend on `nvim-treesitter/queries/filetype/folds.scm`,
vim.o.foldlevelstart = 99 -- -- performance and stability are better than `foldmethod=nvim_treesitter#foldexpr()`
vim.o.foldenable = true -- require("ufo").setup({
-- vim.o.fillchars = [[eob: ,fold: ,foldopen:,foldsep: ,foldclose:]] -- -- provider_selector = function(bufnr, filetype, buftype)
vim.o.fillchars = [[eob: ,fold: ,foldopen:,foldsep: ,foldclose:]] -- -- return { "treesitter", "indent" }
-- -- end,
-- these are "extra", change them as you like -- open_fold_hl_timeout = 150,
vim.keymap.set("n", "zR", require("ufo").openAllFolds) --
vim.keymap.set("n", "zM", require("ufo").closeAllFolds) -- preview = {
vim.cmd("highlight FoldColumn guifg=" .. vim.fn.synIDattr(vim.fn.synIDtrans(vim.fn.hlID("Comment")), "fg")) -- win_config = {
-- Option 3: treesitter as a main provider instead -- border = { "", "─", "", "", "", "─", "", "" },
-- Only depend on `nvim-treesitter/queries/filetype/folds.scm`, -- -- winhighlight = 'Normal:Normal',
-- performance and stability are better than `foldmethod=nvim_treesitter#foldexpr()` -- -- winhighlight = 'IncSearch:Folded',
require("ufo").setup({ -- winhighlight = "Normal:UfoPreviewNormal,FloatBorder:UfoPreviewBorder,CursorLine:UfoPreviewCursorLine",
-- provider_selector = function(bufnr, filetype, buftype) -- winblend = 0,
-- },
-- mappings = {
-- scrollU = "<C-u>",
-- scrollD = "<C-d>",
-- jumpTop = "[",
-- jumpBot = "]",
-- },
-- },
-- provider_selector = function(_, filetype)
-- return { "treesitter", "indent" } -- return { "treesitter", "indent" }
-- end, -- end,
open_fold_hl_timeout = 150, -- fold_virt_text_handler = function(virt_text, lnum, end_lnum, width, truncate)
-- local result = {}
preview = { -- local _end = end_lnum - 1
win_config = { -- local final_text = vim.trim(vim.api.nvim_buf_get_text(0, _end, 0, _end, -1, {})[1])
border = { "", "", "", "", "", "", "", "" }, -- local suffix = final_text:format(end_lnum - lnum)
-- winhighlight = 'Normal:Normal', -- local suffix_width = vim.fn.strdisplaywidth(suffix)
-- winhighlight = 'IncSearch:Folded', -- local target_width = width - suffix_width
winhighlight = "Normal:UfoPreviewNormal,FloatBorder:UfoPreviewBorder,CursorLine:UfoPreviewCursorLine", -- local cur_width = 0
winblend = 0, -- for _, chunk in ipairs(virt_text) do
}, -- local chunk_text = chunk[1]
mappings = { -- local chunk_width = vim.fn.strdisplaywidth(chunk_text)
scrollU = "<C-u>", -- if target_width > cur_width + chunk_width then
scrollD = "<C-d>", -- table.insert(result, chunk)
jumpTop = "[", -- else
jumpBot = "]", -- chunk_text = truncate(chunk_text, target_width - cur_width)
}, -- local hl_group = chunk[2]
}, -- table.insert(result, { chunk_text, hl_group })
provider_selector = function(_, filetype) -- chunk_width = vim.fn.strdisplaywidth(chunk_text)
return { "treesitter", "indent" } -- -- str width returned from truncate() may less than 2nd argument, need padding
end, -- if cur_width + chunk_width < target_width then
fold_virt_text_handler = function(virt_text, lnum, end_lnum, width, truncate) -- suffix = suffix .. (" "):rep(target_width - cur_width - chunk_width)
local result = {} -- end
local _end = end_lnum - 1 -- break
local final_text = vim.trim(vim.api.nvim_buf_get_text(0, _end, 0, _end, -1, {})[1]) -- end
local suffix = final_text:format(end_lnum - lnum) -- cur_width = cur_width + chunk_width
local suffix_width = vim.fn.strdisplaywidth(suffix) -- end
local target_width = width - suffix_width -- table.insert(result, { " ⋯ ", "NonText" })
local cur_width = 0 -- table.insert(result, { suffix, "TSPunctBracket" })
for _, chunk in ipairs(virt_text) do -- return result
local chunk_text = chunk[1] -- end,
local chunk_width = vim.fn.strdisplaywidth(chunk_text) -- })
if target_width > cur_width + chunk_width then -- end,
table.insert(result, chunk)
else
chunk_text = truncate(chunk_text, target_width - cur_width)
local hl_group = chunk[2]
table.insert(result, { chunk_text, hl_group })
chunk_width = vim.fn.strdisplaywidth(chunk_text)
-- str width returned from truncate() may less than 2nd argument, need padding
if cur_width + chunk_width < target_width then
suffix = suffix .. (" "):rep(target_width - cur_width - chunk_width)
end
break
end
cur_width = cur_width + chunk_width
end
table.insert(result, { "", "NonText" })
table.insert(result, { suffix, "TSPunctBracket" })
return result
end,
})
end,
} }