Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit c73955c

Browse files
authored
fix: rust-tools.nvim not found (kawre#46)
1 parent e6d5f79 commit c73955c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lua/leetcode-ui/question.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ function Question:handle_mount()
9191
vim.cmd("$tabe " .. self.file:absolute())
9292

9393
-- https://github.com/kawre/leetcode.nvim/issues/14
94-
if self.lang == "rust" then pcall(require("rust-tools.standalone").start_standalone_client) end
94+
if self.lang == "rust" then
95+
pcall(function() require("rust-tools.standalone").start_standalone_client() end)
96+
end
9597

9698
self.bufnr = vim.api.nvim_get_current_buf()
9799
self.winid = vim.api.nvim_get_current_win()

0 commit comments

Comments
 (0)