From cd359d892c83c8678fc1afdd7d9777841a54617d Mon Sep 17 00:00:00 2001 From: PostCyberPunk Date: Sat, 9 Mar 2024 09:56:45 +0800 Subject: [PATCH] fix(neo-tree): setreg option should use table instead of string --- lua/lazyvim/plugins/editor.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazyvim/plugins/editor.lua b/lua/lazyvim/plugins/editor.lua index 62ab4d7a..1a242d68 100644 --- a/lua/lazyvim/plugins/editor.lua +++ b/lua/lazyvim/plugins/editor.lua @@ -65,7 +65,7 @@ return { function(state) local node = state.tree:get_node() local path = node:get_id() - vim.fn.setreg("+", path, "c") + vim.fn.setreg("+", path, { "c" }) end, desc = "copy path to clipboard", },