added Precognition, Persistance, leaderW save and other nice updates

This commit is contained in:
Francis 2025-10-14 16:41:13 +01:00
parent 0748feb445
commit 1b56f16e49
6 changed files with 183 additions and 25 deletions

View file

@ -0,0 +1,38 @@
return {
'chentoast/marks.nvim',
event = 'VeryLazy',
opts = {
-- whether to map keybinds or not. default true
default_mappings = true,
-- which builtin marks to show. default {}
builtin_marks = { '.', '<', '>', '^' },
-- whether movements cycle back to the beginning/end of buffer. default true
cyclic = true,
-- whether the shada file is updated after modifying uppercase marks. default false
force_write_shada = false,
-- how often (in ms) to redraw signs/recompute mark positions
-- higher values will have better performance but may cause visual lag,
-- while lower values may cause performance penalties. default 150.
refresh_interval = 250,
-- sign priorities for each type of mark - builtin marks, uppercase marks, lowercase
-- marks, and bookmarks.
-- can be either a table with all/none of the keys, or a single number, in which case
-- the priority applies to all marks.
-- default 10.
sign_priority = { lower = 10, upper = 15, builtin = 8, bookmark = 20 },
-- disables mark tracking for specific filetypes. default {}
excluded_filetypes = {},
-- disables mark tracking for specific buftypes. default {}
excluded_buftypes = {},
-- marks.nvim allows you to configure up to 10 bookmark groups, each with its own
-- sign/virttext. Bookmarks can be used to group together positions and quickly move
-- across multiple buffers. default sign is '!@#$%^&*()' (from 0 to 9), and
-- default virt_text is "".
bookmark_0 = {
sign = '',
virt_text = 'hello world',
annotate = false,
},
mappings = {},
},
}

View file

@ -0,0 +1,29 @@
return {
'folke/persistence.nvim',
event = 'BufReadPre',
opts = {},
-- Optional keymaps for manual session control
keys = {
{
'<leader>qs',
function()
require('persistence').load()
end,
desc = 'Restore Session',
},
{
'<leader>ql',
function()
require('persistence').load { last = true }
end,
desc = 'Restore Last Session',
},
{
'<leader>qd',
function()
require('persistence').stop()
end,
desc = "Don't Save Current Session",
},
},
}

View file

@ -0,0 +1,37 @@
return {
'tris203/precognition.nvim',
--event = "VeryLazy",
opts = {
startVisible = true,
-- showBlankVirtLine = true,
-- highlightColor = { link = "Comment" },
-- hints = {
-- Caret = { text = "^", prio = 2 },
-- Dollar = { text = "$", prio = 1 },
-- MatchingPair = { text = "%", prio = 5 },
-- Zero = { text = "0", prio = 1 },
-- w = { text = "w", prio = 10 },
-- b = { text = "b", prio = 9 },
-- e = { text = "e", prio = 8 },
-- W = { text = "W", prio = 7 },
-- B = { text = "B", prio = 6 },
-- E = { text = "E", prio = 5 },
-- },
-- gutterHints = {
-- G = { text = "G", prio = 10 },
-- gg = { text = "gg", prio = 9 },
-- PrevParagraph = { text = "{", prio = 8 },
-- NextParagraph = { text = "}", prio = 8 },
-- },
-- disabled_fts = {
-- "startify",
-- },
},
keys = {
{
'<leader>P',
'<cmd>Precognition toggle<CR>',
desc = 'Toggle Precognition',
},
},
}