From 56c21ba85cd2b8a4d2ec4332c1056cafb93209b7 Mon Sep 17 00:00:00 2001 From: rawnly Date: Wed, 15 Mar 2023 15:04:07 +0100 Subject: [PATCH] fix: fixed default clipboard destination --- lua/gist/core/gh.lua | 2 +- plugin/gist.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/gist/core/gh.lua b/lua/gist/core/gh.lua index 62aaca2..3c8ee3f 100644 --- a/lua/gist/core/gh.lua +++ b/lua/gist/core/gh.lua @@ -44,7 +44,7 @@ function M.read_config() local ok, values = pcall(vim.api.nvim_get_var, { "gist_is_private", "gist_clipboard" }) local is_private = ok and values[1] or false - local clipboard = ok and values[2] or "xsel" + local clipboard = ok and values[2] or "+" local config = { is_private = is_private, diff --git a/plugin/gist.lua b/plugin/gist.lua index b86c600..f43b6ac 100644 --- a/plugin/gist.lua +++ b/plugin/gist.lua @@ -2,5 +2,5 @@ local gist = require("gist") vim.api.nvim_create_user_command("CreateGist", gist.create, { bang = true, - desc = "Create a new gist from curretn file", + desc = "Create a new gist from current file", })