Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
tjdevries committed Feb 2, 2024
1 parent ffda6cf commit a178100
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions build/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ if not ok then
config = {}
end

config.accept_tos = true

-- This is the default path of downloading binaries
if config.download_binaries or config.download_binaries == nil then
return require("sg.build").download()
Expand Down
12 changes: 11 additions & 1 deletion doc/sg.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ sg.config *sg.config*
{download_binaries} (boolean?) Default true, download latest release
from Github
{node_executable} (string?) path to node executable
{skip_node_check} (boolean?) Useful if using other js runtime
{cody_agent} (string?) path to the cody-agent js bundle
{on_attach} (function?) function to run when attaching to
sg://<file> buffers
Expand Down Expand Up @@ -293,6 +294,10 @@ Default commands for interacting with Sourcegraph
If you want to force a particular endpoint + access token combination to be
saved, use :SourcegraphLogin! and then follow the prompts.

*:SourcegraphClear*
:SourcegraphClear ~
Remove Sourcegraph Login information

*:SourcegraphBuild*
:SourcegraphBuild ~
Rebuild the Sourcegraph crates and required dependencies (in case build
Expand Down Expand Up @@ -394,10 +399,15 @@ rpc.get_info() *sg.rpc.get_info()*



rpc.get_link() *sg.rpc.get_link()*
rpc.get_link({path}, {position}, {callback}) *sg.rpc.get_link()*
Get info about current sourcegraph info


Parameters: ~
{path} (string)
{position} ({ start_line: number, start_col: number, end_line: number, end_col: number })
{callback} (any)



================================================================================
Expand Down

0 comments on commit a178100

Please sign in to comment.