From 9b7762e45a7330aff847fa82c9b97df68af242e3 Mon Sep 17 00:00:00 2001 From: Stefan Imhoff Date: Mon, 31 Oct 2022 08:59:07 +0100 Subject: [PATCH] chore(nvim): replace vim-surround with nvim-surround --- nvim/after/plugin/surround.lua | 7 +++++++ nvim/lua/kogakure/plugins.lua | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 nvim/after/plugin/surround.lua diff --git a/nvim/after/plugin/surround.lua b/nvim/after/plugin/surround.lua new file mode 100644 index 0000000..72d236b --- /dev/null +++ b/nvim/after/plugin/surround.lua @@ -0,0 +1,7 @@ +-- nvim-surround – https://github.com/kylechui/nvim-surround +local status_ok, surround = pcall(require, "nvim-surround") +if not status_ok then + return +end + +surround.setup() diff --git a/nvim/lua/kogakure/plugins.lua b/nvim/lua/kogakure/plugins.lua index 46d73d9..13b095b 100644 --- a/nvim/lua/kogakure/plugins.lua +++ b/nvim/lua/kogakure/plugins.lua @@ -155,7 +155,7 @@ return packer.startup(function(use) use("tpope/vim-speeddating") -- Increase dates, times, etc. use("rstacruz/vim-xtract") -- Extract code into new file use("tpope/vim-repeat") -- Repeat plugins - use("tpope/vim-surround") -- Replace, add, remove surroundings + use("kylechui/nvim-surround") -- Surround selections, stylishly use("wuelnerdotexe/vim-astro") -- Astro support use("MunifTanjim/prettier.nvim") -- Prettier use("untitled-ai/jupyter_ascending.vim") -- Interact with jupyter_ascending @@ -172,6 +172,7 @@ return packer.startup(function(use) use("kana/vim-textobj-user") use("michaeljsmith/vim-indent-object") -- ai, ii, aI, iI use("whatyouhide/vim-textobj-xmlattr") -- ax, ix + use("nvim-treesitter/nvim-treesitter-textobjects") -- Syntax aware text-objects -- Custom Motions use("christoomey/vim-sort-motion") -- gs