Migrate to lazy.nvim with more lua config
This commit is contained in:
parent
d7aa29354c
commit
be6559c1b6
28 changed files with 823 additions and 445 deletions
12
lua/plugins/deepl.lua
Normal file
12
lua/plugins/deepl.lua
Normal file
|
@ -0,0 +1,12 @@
|
|||
return { 'ryicoh/deepl.vim',
|
||||
keys = {
|
||||
|
||||
{ '<leader><C-e>', function() vim.fn['deepl#v']("EN") end, mode = 'v' },
|
||||
{ '<leader><C-d>', function() vim.fn['deepl#v']("DE") end, mode = 'v' },
|
||||
},
|
||||
dependencies = { 'tsuyoshicho/vim-pass' },
|
||||
config = function ()
|
||||
vim.g['deepl#endpoint'] = "https://api-free.deepl.com/v2/translate"
|
||||
vim.g['deepl#auth_key'] = vim.fn['pass#get']('web/deepl.com', 'apikey')
|
||||
end
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue