plugins/sg: init

This commit is contained in:
Gaetan Lepage 2025-01-12 00:33:58 +01:00 committed by nix-infra-bot
parent 5f3785feb8
commit 8f4bf6d300
2 changed files with 135 additions and 0 deletions

View 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;
};
};
};
}