plugins.gx.settings
Options provided to the require('gx').setup
function.
Type: attribute set of anything
Default:
{ }
Example:
{
open_browser_args = [ "--background" ];
handlers = {
rust = {
name = "rust";
filetype = [ "toml" ];
filename = "Cargo.toml";
handle.__raw = ''
function(mode, line, _)
local crate = require("gx.helper").find(line, mode, "(%w+)%s-=%s")
if crate then
return "https://crates.io/crates/" .. crate
end
end
'';
};
};
handler_options = {
search_engine = "duckduckgo";
git_remotes = [
"origin"
];
};
};
Declared by:
plugins.gx.settings.handlers
Enable built-in handlers and configure custom ones. By default, all
handlers are disabled. To enable a built-in handler, set it to true
.
Type: null or (attribute set of (anything or raw lua code)) or raw lua code
Default:
null
Plugin default: { }
Declared by:
plugins.gx.settings.open_browser_app
Specify your browser app; default for macOS is "open"
, Linux "xdg-open"
and Windows "powershell.exe"
.
Type: null or string or raw lua code
Default:
null
Plugin default: null
Declared by:
plugins.gx.settings.open_browser_args
Arguments provided to the browser app, such as --background
for macOS’s open
.
Type: null or (list of (string or raw lua code)) or raw lua code
Default:
null
Plugin default: [ ]
Declared by: