From 542e6b79ad976fba2967e8fc7ea521efd06d6997 Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Wed, 17 Aug 2022 19:42:37 -0700 Subject: [PATCH] nvim: add neogen and vim-oscyank --- .config/nvim/lua/blake/plugins.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.config/nvim/lua/blake/plugins.lua b/.config/nvim/lua/blake/plugins.lua index ce0e5e4..2a077fe 100644 --- a/.config/nvim/lua/blake/plugins.lua +++ b/.config/nvim/lua/blake/plugins.lua @@ -219,6 +219,7 @@ return require('packer').startup({function() ) end, } + ---- DAP (Debug Adapter Protocol) use { -- nvim-dap: DAP support 'mfussenegger/nvim-dap', @@ -340,6 +341,17 @@ return require('packer').startup({function() }) end } + use { -- neogen: annotation generator for neovim + 'danymat/neogen', + requires = "nvim-treesitter/nvim-treesitter", + config = function() + require('neogen').setup({ + snippet_engine = "luasnip", + }) + local opts = { noremap = true, silent = true } + vim.api.nvim_set_keymap("n", "af", ":lua require('neogen').generate('func')", opts) + end + } -- Conveniences use { -- sort motion: (gs) @@ -455,6 +467,13 @@ return require('packer').startup({function() require('marks').setup() end } + use { -- oscyank: copy text to system clipboard over ssh + 'ojroques/vim-oscyank', + config = function() + -- Yanking to "+ will yank to system board + vim.cmd [[ autocmd TextYankPost * if v:event.operator is 'y' && v:event.regname is '+' | execute 'OSCYankReg +' | endif ]] + end + } use { -- rhysd: clever-split: split calculation based on pane dimensions - CS or CleverSplit 'rhysd/clever-split.vim', config = function()