nvim: add neogen and vim-oscyank
This commit is contained in:
parent
8c3850af06
commit
542e6b79ad
1 changed files with 19 additions and 0 deletions
|
@ -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", "<Leader>af", ":lua require('neogen').generate('func')<CR>", 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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue