Skip to content

Commit

Permalink
fix: fix checking trouble installed (#469)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuznetsss authored Oct 12, 2024
1 parent d587f30 commit 5b6d296
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ or if you are using [lazy.nvim](https://github.com/folke/lazy.nvim):
dependencies = {
"MunifTanjim/nui.nvim",
"nvim-lua/plenary.nvim",
"folke/trouble.nvim",
"folke/trouble.nvim", -- optional
"nvim-telescope/telescope.nvim"
}
}
Expand Down Expand Up @@ -181,6 +181,7 @@ A simple configuration of the chat model could look something like this:
dependencies = {
"MunifTanjim/nui.nvim",
"nvim-lua/plenary.nvim",
"folke/trouble.nvim", -- optional
"nvim-telescope/telescope.nvim"
}
}
Expand Down
2 changes: 1 addition & 1 deletion lua/chatgpt/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ WELCOME_MESSAGE = [[
]]

function default_quickfix_cmd()
if pcall(require("trouble")) then
if pcall(require, "trouble") then
return "Trouble quickfix"
else
return "cope"
Expand Down

0 comments on commit 5b6d296

Please sign in to comment.