38 lines
829 B
Lua
38 lines
829 B
Lua
return {
|
|
'kawre/leetcode.nvim',
|
|
build = ':TSUpdate html',
|
|
dependencies = {
|
|
'nvim-lua/plenary.nvim',
|
|
'MunifTanjim/nui.nvim',
|
|
},
|
|
opts = {
|
|
arg = "lc",
|
|
lang = 'typescript',
|
|
injector = {
|
|
["python3"] = {
|
|
imports = function(default_imports)
|
|
vim.list_extend(default_imports, { "from .leetcode import *" })
|
|
return default_imports
|
|
end,
|
|
after = { "def test():", " print('test')" },
|
|
},
|
|
},
|
|
picker = { provider = 'telescope' },
|
|
image_support = true,
|
|
},
|
|
}
|
|
-- Language Options:
|
|
-- Bash: 'bash'
|
|
-- C: 'c'
|
|
-- C++: 'cpp'
|
|
-- C#: 'csharp'
|
|
-- Go: 'golang'
|
|
-- Java: 'java'
|
|
-- JavaScript: 'javascript'
|
|
-- Kotlin: 'kotlin'
|
|
-- PHP: 'php'
|
|
-- Python: 'python'
|
|
-- Rust: 'rust'
|
|
-- Swift: 'swift'
|
|
-- TypeScript: 'typescript'
|