1
1
Fork 0

Compare commits

..

No commits in common. "6af9ac43facac2e14fe505d6bbc5436ba9d83211" and "661eb3a59a38c17acdba4212971526824674c7fd" have entirely different histories.

4 changed files with 44 additions and 37 deletions

View file

@ -27,7 +27,6 @@
"nvim-cokeline": { "branch": "main", "commit": "9fbed130683b7b6f73198c09e35ba4b33f547c08" }, "nvim-cokeline": { "branch": "main", "commit": "9fbed130683b7b6f73198c09e35ba4b33f547c08" },
"nvim-colorizer.lua": { "branch": "master", "commit": "517df88cf2afb36652830df2c655df2da416a0ae" }, "nvim-colorizer.lua": { "branch": "master", "commit": "517df88cf2afb36652830df2c655df2da416a0ae" },
"nvim-lspconfig": { "branch": "master", "commit": "463b16bd6a347a129367a7fd00ebcdd9442d9a96" }, "nvim-lspconfig": { "branch": "master", "commit": "463b16bd6a347a129367a7fd00ebcdd9442d9a96" },
"nvim-origami": { "branch": "main", "commit": "359cb2f5d28cc54a18a3a7fa40292a21f6c9e1a8" },
"nvim-spectre": { "branch": "master", "commit": "72f56f7585903cd7bf92c665351aa585e150af0f" }, "nvim-spectre": { "branch": "master", "commit": "72f56f7585903cd7bf92c665351aa585e150af0f" },
"nvim-spider": { "branch": "main", "commit": "d4bdc45eac425e77108f068bd0706ff3ac20be7f" }, "nvim-spider": { "branch": "main", "commit": "d4bdc45eac425e77108f068bd0706ff3ac20be7f" },
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" }, "nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },

View file

@ -11,6 +11,7 @@ map('n', '<]b>', '<Cmd>bn<CR>', opts)
map('n', '<leader>w', '<Cmd>bd<CR>', opts) map('n', '<leader>w', '<Cmd>bd<CR>', opts)
map('n', '<leader>s', '<Cmd>w<CR>', opts) map('n', '<leader>s', '<Cmd>w<CR>', opts)
map('n', '<leader>S', '<Cmd>w!<CR>', opts) map('n', '<leader>S', '<Cmd>w!<CR>', opts)
map('n', '<Enter>', 'za<CR>', opts)
map('n', '<leader>t', "<Cmd>Switch<CR>", opts) map('n', '<leader>t', "<Cmd>Switch<CR>", opts)
map('n', '<leader>r', "<Cmd>Spectre<CR>", opts) map('n', '<leader>r', "<Cmd>Spectre<CR>", opts)
map('n', '<Up>', "<C-a>", opts) map('n', '<Up>', "<C-a>", opts)

View file

@ -1,32 +1,43 @@
return { return {}
"chrisgrieser/nvim-origami", -- local handler = function(virtText, lnum, endLnum, width, truncate)
event = "VeryLazy", -- local newVirtText = {}
opts = { -- local suffix = (' 󰁂 %d '):format(endLnum - lnum)
useLspFoldsWithTreesitterFallback = true, -- required for `autoFold` -- local sufWidth = vim.fn.strdisplaywidth(suffix)
pauseFoldsOnSearch = true, -- local targetWidth = width - sufWidth
foldtext = { -- local curWidth = 0
enabled = true, -- for _, chunk in ipairs(virtText) do
padding = 3, -- local chunkText = chunk[1]
lineCount = { -- local chunkWidth = vim.fn.strdisplaywidth(chunkText)
template = "%d lines", -- `%d` is replaced with the number of folded lines -- if targetWidth > curWidth + chunkWidth then
hlgroup = "Comment", -- table.insert(newVirtText, chunk)
}, -- else
diagnosticsCount = true, -- uses hlgroups and icons from `vim.diagnostic.config().signs` -- chunkText = truncate(chunkText, targetWidth - curWidth)
gitsignsCount = true, -- requires `gitsigns.nvim` -- local hlGroup = chunk[2]
}, -- table.insert(newVirtText, { chunkText, hlGroup })
autoFold = { -- chunkWidth = vim.fn.strdisplaywidth(chunkText)
enabled = true, -- -- str width returned from truncate() may less than 2nd argument, need padding
kinds = { "comment", "imports" }, ---@type lsp.FoldingRangeKind[] -- if curWidth + chunkWidth < targetWidth then
}, -- suffix = suffix .. (' '):rep(targetWidth - curWidth - chunkWidth)
foldKeymaps = { -- end
setup = true, -- modifies `h` and `l` -- break
hOnlyOpensOnFirstColumn = false, -- end
}, -- curWidth = curWidth + chunkWidth
}, -- end
-- table.insert(newVirtText, { suffix, 'MoreMsg' })
-- recommended: disable vim's auto-folding -- return newVirtText
init = function() -- end
vim.opt.foldlevel = 99 --
vim.opt.foldlevelstart = 99 -- return {
end, -- "kevinhwang91/nvim-ufo",
} -- dependencies = {
-- "kevinhwang91/promise-async",
-- },
-- config = function()
-- require('ufo').setup({
-- fold_virt_text_handler = handler,
-- provider_selector = function(_bufnr, _filetype, _buftype)
-- return { 'treesitter', 'indent' }
-- end
-- })
-- end,
-- }

View file

@ -1,4 +0,0 @@
return {
'stevearc/overseer.nvim',
opts = {},
}