Skip to content

Commit

Permalink
feat(lspsaga): allow customization of open_browser
Browse files Browse the repository at this point in the history
  • Loading branch information
Jint-lzxy committed Mar 28, 2023
1 parent 5e197b3 commit 7a029fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lua/core/settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ settings["colorscheme"] = "catppuccin"
---@type "dark"|"light"
settings["background"] = "dark"

-- Set the executable for handling external URLs here. This command must be available on your $PATH.
-- This entry is IGNORED on Windows and macOS, which have already provided their default handlers.
---@type string
settings["external_browser"] = "chrome-cli open"

-- Filetypes in this list will skip lsp formatting if rhs is true
---@type table<string, boolean>
settings["formatter_block_list"] = {
Expand Down
2 changes: 1 addition & 1 deletion lua/modules/configs/completion/lspsaga.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ return function()
},
hover = {
open_link = "gl",
open_browser = "!chrome",
open_browser = "silent !" .. require("core.settings").external_browser,
},
outline = {
win_position = "right",
Expand Down

0 comments on commit 7a029fe

Please sign in to comment.