irongit
Explore
Docs
Sign in
Register
huncholane
/
leetcode.nvim
Public
A Neovim plugin enabling you to solve LeetCode problems.
Code
Commits
Branches
Tags
huncholane
master
leetcode.nvim
/
lua
/
leetcode
/
config
/
hooks.lua
15 lines
332 B
Lua
Raw
Download
History
1
--
-@class lc.Hooks
2
local
hooks
=
{}
3
4
hooks[
"
question_enter
"
]
=
{
5
function
(q)
6
--
https://github.com/kawre/leetcode.nvim/issues/14
7
if
q.lang
==
"
rust
"
then
8
pcall
(
function
()
9
require
(
"
rust-tools.standalone
"
).start_standalone_client()
10
end
)
11
end
12
end
,
13
}
14
15
return
hooks