plugins.sg.settings

Options provided to the require('sg').setup function.

Type: attribute set of anything

Default: { }

Example:

{
  accept_tos = true;
  enable_cody = true;
  skip_node_check = true;
}

Declared by:

plugins.sg.settings.enable_cody

Enable/disable cody integration.

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by:

plugins.sg.settings.accept_tos

Accept the TOS without being prompted.

Type: null or boolean or raw lua code

Default: null

Plugin default: false

Declared by:

plugins.sg.settings.cody_agent

Path to the cody-agent js bundle.

Type: null or string or raw lua code

Default: null

Plugin default: lib.nixvim.mkRaw "vim.api.nvim_get_runtime_file('dist/cody-agent.js', false)[1]"

Declared by:

plugins.sg.settings.download_binaries

Whether to download latest release from Github.

WARNING: This should not be needed in Nixvim.

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by:

plugins.sg.settings.node_executable

Path to the node executable.

If you set nodePackage to a non-null package, this option will automatically default to its path.

Type: null or string or raw lua code

Default: null

Plugin default: "node"

Declared by:

plugins.sg.settings.on_attach

Function to run when attaching to sg://<file> buffers.

Type: null or raw lua code

Default: null

Plugin default: lib.nixvim.mkRaw "function(_, bufnr)\n vim.keymap.set(\"n\", \"gd\", vim.lsp.buf.definition, { buffer = bufnr })\n vim.keymap.set(\"n\", \"gr\", vim.lsp.buf.references, { buffer = bufnr })\n vim.keymap.set(\"n\", \"K\", vim.lsp.buf.hover, { buffer = bufnr })\nend\n"

Declared by:

plugins.sg.settings.skip_node_check

Whether to skip node checks.

Useful if using other js runtime.

Type: null or boolean or raw lua code

Default: null

Plugin default: false

Declared by:

plugins.sg.settings.src_headers

Headers to be sent with each sg request.

Type: null or (attribute set of (string or raw lua code)) or raw lua code

Default: null

Plugin default: null

Declared by: