[[plugins]]
repo = "gw31415/deepl.vim"
lua_after = '''
vim.api.nvim_set_var('deepl_authkey', os.getenv 'DEEPL_API_KEY')
vim.api.nvim_set_var('deepl_target_lang', 'EN')
'''
[[plugins]]
repo = "gw31415/deepl-operator.vim"
with = ["deepl.vim"]
on_map = { nx = ["cl", "cL"] }
lua_after = '''
vim.keymap.set({ 'n', 'x' }, 'cl', '<Plug>(deepl-replace)', { desc = 'Replace with DeepL translation' })
vim.keymap.set('n', 'cll', '<Plug>(deepl-replace)_', { desc = 'Replace with DeepL translation and keep cursor' })
vim.keymap.set('n', 'cL', '<Plug>(deepl-replace)$', { desc = 'Replace with DeepL translation at end of line' })
'''
[[plugins]]
repo = "nvim-lua/plenary.nvim"
lua_after = "vim.notify 'plenary.nvim loaded'"
[[plugins]]
repo = "rest-nvim/rest.nvim"
on_ft = "http"
lua_after = "require 'rest-nvim'.setup {}"
[[plugins]]
repo = "j-hui/fidget.nvim@v*"
on_event = "CursorHold"
lua_after = '''
require 'fidget'.setup {
notification = {
override_vim_notify = true,
}
}
'''
[[plugins]]
repo = "simeji/winresizer"
on_map = "<c-w>"
lua_before = "vim.api.nvim_set_var('winresizer_start_key', '<c-w>e')"
[[plugins]]
repo = "navarasu/onedark.nvim"
start = true
[[plugins]]
repo = "https://gitlab.com/HiPhish/rainbow-delimiters.nvim"
on_event = "BufReadPre"
[[plugins]]
repo = "https://codeberg.org/andyg/leap.nvim@main"
on_event = "InsertEnter"