mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-24 04:35:08 +02:00
plugins/sg: init
This commit is contained in:
parent
5f3785feb8
commit
8f4bf6d300
2 changed files with 135 additions and 0 deletions
49
tests/test-sources/plugins/by-name/sg/default.nix
Normal file
49
tests/test-sources/plugins/by-name/sg/default.nix
Normal file
|
@ -0,0 +1,49 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.sg = {
|
||||
enable = true;
|
||||
|
||||
# When cody is enabled, sg.nvim tries to access the home directory
|
||||
settings.enable_cody = false;
|
||||
};
|
||||
};
|
||||
|
||||
default = {
|
||||
plugins.sg = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
# When cody is enabled, sg.nvim tries to access the home directory
|
||||
enable_cody = false;
|
||||
accept_tos = false;
|
||||
chat = {
|
||||
default_model = null;
|
||||
};
|
||||
download_binaries = true;
|
||||
node_executable = "node";
|
||||
skip_node_check = false;
|
||||
cody_agent.__raw = "vim.api.nvim_get_runtime_file('dist/cody-agent.js', false)[1]";
|
||||
on_attach.__raw = ''
|
||||
function(_, bufnr)
|
||||
vim.keymap.set("n", "gd", vim.lsp.buf.definition, { buffer = bufnr })
|
||||
vim.keymap.set("n", "gr", vim.lsp.buf.references, { buffer = bufnr })
|
||||
vim.keymap.set("n", "K", vim.lsp.buf.hover, { buffer = bufnr })
|
||||
end
|
||||
'';
|
||||
src_headers = null;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.sg = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
enable_cody = false;
|
||||
accept_tos = true;
|
||||
skip_node_check = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue