1
1
Fork 0
This commit is contained in:
Ava Gaiety W 2025-06-21 20:16:03 -06:00
parent 661eb3a59a
commit 4a617c1fbb
3 changed files with 33 additions and 44 deletions

View file

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