mirror of
https://github.com/cap153/nvim.git
synced 2025-12-26 19:25:01 +08:00
first commit
This commit is contained in:
commit
6955e90e07
61 changed files with 3641 additions and 0 deletions
13
lua/lazy/plugins/translate.lua
Normal file
13
lua/lazy/plugins/translate.lua
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
-- 可视视图下
|
||||
return {
|
||||
"kraftwerk28/gtranslate.nvim",
|
||||
dependencies = "nvim-lua/plenary.nvim",
|
||||
config = function()
|
||||
vim.api.nvim_set_keymap('n', 'tr', "viw:'<,'>Translate<CR>", { noremap = true, silent = true })
|
||||
vim.api.nvim_set_keymap('v', 'tr', ":'<,'>Translate<CR>", { noremap = true, silent = true })
|
||||
require("gtranslate").setup {
|
||||
default_to_language = "Chinese_Simplified",
|
||||
}
|
||||
end
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue