From a29e8d657bceddf1e9bc057a974ec755d20cb633 Mon Sep 17 00:00:00 2001 From: Gabe Venberg Date: Wed, 8 Nov 2023 11:23:05 -0600 Subject: [PATCH] added surround.nvim --- neovim/.config/nvim/lua/packages.lua | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/neovim/.config/nvim/lua/packages.lua b/neovim/.config/nvim/lua/packages.lua index 7637820..0874580 100644 --- a/neovim/.config/nvim/lua/packages.lua +++ b/neovim/.config/nvim/lua/packages.lua @@ -263,12 +263,12 @@ require('lazy').setup({ 'romgrk/nvim-treesitter-context', dependencies = { 'nvim-treesitter/nvim-treesitter' }, opts = { - enable = true, -- Enable this plugin (Can be enabled/disabled later via commands) - max_lines = 0, -- How many lines the window should span. Values <= 0 mean no limit. - trim_scope = 'outer', -- Which context lines to discard if `max_lines` is exceeded. Choices: 'inner', 'outer' + enable = true, -- Enable this plugin (Can be enabled/disabled later via commands) + max_lines = 0, -- How many lines the window should span. Values <= 0 mean no limit. + trim_scope = 'outer', -- Which context lines to discard if `max_lines` is exceeded. Choices: 'inner', 'outer' min_window_height = 0, -- Minimum editor window height to enable context. Values <= 0 mean no limit. - zindex = 200, -- The Z-index of the context window - mode = 'cursor', -- Line used to calculate context. Choices: 'cursor', 'topline' + zindex = 200, -- The Z-index of the context window + mode = 'cursor', -- Line used to calculate context. Choices: 'cursor', 'topline' -- Separator between context and content. Should be a single character string, like '-'. -- When separator is set, the context will only show up when there are at least 2 lines above cursorline. separator = nil, @@ -312,7 +312,7 @@ require('lazy').setup({ 'chentoast/marks.nvim', config = true }, - 'sitiom/nvim-numbertoggle', + { 'sitiom/nvim-numbertoggle', }, { 'numToStr/Comment.nvim', config = true, @@ -327,7 +327,13 @@ require('lazy').setup({ max_join_length = 256, } }, - "jbyuki/venn.nvim", + { + "kylechui/nvim-surround", + version = "*", -- Use for stability; omit to use `main` branch for the latest features + event = "VeryLazy", + config = true, + }, + { "jbyuki/venn.nvim", }, --colorscheme {