summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2024-07-20 08:55:02 +0200
committerMinijackson <minijackson@riseup.net>2024-07-20 08:55:02 +0200
commitc20d1ace2ce963599f6f5aa0f6c212c84b1184e0 (patch)
tree91ca508f2db7c25e0e9ad7345b58833a68c981ba /common
parenta655e6004d924233e6be4ddb49ab8059015e357b (diff)
downloadnixos-config-reborn-c20d1ace2ce963599f6f5aa0f6c212c84b1184e0.tar.gz
nixos-config-reborn-c20d1ace2ce963599f6f5aa0f6c212c84b1184e0.zip
common/nixvim: replace mini.surround with nvim-surround
Diffstat (limited to 'common')
-rw-r--r--common/nixvim.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/common/nixvim.nix b/common/nixvim.nix
index 45c6139..290250e 100644
--- a/common/nixvim.nix
+++ b/common/nixvim.nix
@@ -242,6 +242,8 @@ in
242 fugitive-gitlab-vim 242 fugitive-gitlab-vim
243 243
244 vim-polyglot 244 vim-polyglot
245
246 nvim-surround
245 ]; 247 ];
246 248
247 plugins = { 249 plugins = {
@@ -384,7 +386,6 @@ in
384 ]; 386 ];
385 }; 387 };
386 splitjoin = { }; 388 splitjoin = { };
387 surround.search_method = "cover_or_nearest";
388 trailspace = { }; 389 trailspace = { };
389 }; 390 };
390 }; 391 };
@@ -546,7 +547,7 @@ in
546 }; 547 };
547 }; 548 };
548 549
549 extraConfigLuaPost = '' 550 extraConfigLua = ''
550 vim.api.nvim_create_autocmd("TextYankPost", { 551 vim.api.nvim_create_autocmd("TextYankPost", {
551 desc = "Highlight yanked text", 552 desc = "Highlight yanked text",
552 callback = function() 553 callback = function()
@@ -561,6 +562,8 @@ in
561 vim.api.nvim_create_user_command("Browse", function(opts) 562 vim.api.nvim_create_user_command("Browse", function(opts)
562 vim.ui.open(opts.args) 563 vim.ui.open(opts.args)
563 end, { nargs = 1 }) 564 end, { nargs = 1 })
565
566 require("nvim-surround").setup()
564 ''; 567 '';
565 }; 568 };
566 569