diff options
Diffstat (limited to '.config/nvim/lua/plugins.lua')
-rw-r--r-- | .config/nvim/lua/plugins.lua | 50 |
1 files changed, 43 insertions, 7 deletions
diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua index 101eaa5..d261628 100644 --- a/.config/nvim/lua/plugins.lua +++ b/.config/nvim/lua/plugins.lua @@ -5,6 +5,7 @@ local PKGS = { -- Common { url = "https://github.com/kyazdani42/nvim-web-devicons.git" }; { url = "https://github.com/ojroques/nvim-osc52.git" }; + { url = "https://github.com/chentoast/marks.nvim.git" }; { url = "https://github.com/kyazdani42/nvim-tree.lua.git" }; { url = "https://github.com/nvim-telescope/telescope.nvim.git" }; @@ -150,9 +151,9 @@ local function init_plugins() }); require("catppuccin").setup({ - transparent_background = true, - show_end_of_line = true, - term_colors = true, + transparent_background = true; + show_end_of_line = true; + term_colors = true; }) vim.o.foldcolumn = "1" @@ -160,10 +161,10 @@ local function init_plugins() vim.o.foldlevelstart = 99 vim.o.foldenable = true - require('osc52').setup { - max_length = 0, -- Maximum length of selection (0 for no limit) - silent = false, -- Disable message on successful copy - trim = false, -- Trim surrounding whitespaces before copy + require("osc52").setup { + max_length = 0; -- Maximum length of selection (0 for no limit) + silent = false; -- Disable message on successful copy + trim = false; -- Trim surrounding whitespaces before copy } require("devcontainer").setup({}) @@ -246,6 +247,41 @@ local function init_plugins() yadm = { enable = false }; } + require("marks").setup({ + -- whether to map keybinds or not. default true + default_mappings = false; + -- 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 = {}; + -- 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", + -- -- explicitly prompt for a virtual line annotation when setting a bookmark from this group. + -- -- defaults to false. + -- annotate = false, + -- }, + mappings = {}; + }) + end return { |