feat: bundle nodejs_16 slim with copilot & move copilot to maximal

This commit is contained in:
NotAShelf 2023-02-15 11:47:08 +03:00
parent 71f4c7ecd4
commit 107b572e1c
No known key found for this signature in database
GPG key ID: 5B5C8895F28445F1
2 changed files with 7 additions and 3 deletions

View file

@ -148,8 +148,8 @@ inputs: let
};
vim.assistant = {
copilot.enable = false;
tabnine.enable = false; # FIXME: this is not working because the plugin depends on an internal script to be ran by the package manager
copilot.enable = isMaximal;
#tabnine.enable = false; # FIXME: this is not working because the plugin depends on an internal script to be ran by the package manager
};
vim.session = {

View file

@ -13,11 +13,15 @@ in {
};
config = mkIf cfg.enable {
vim.startPlugins = ["copilot-lua"];
vim.startPlugins = [
"copilot-lua"
pkgs.nodejs-slim-16_x
];
vim.luaConfigRC.copilot = nvim.dag.entryAnywhere ''
require("copilot").setup({
-- available options: https://github.com/zbirenbaum/copilot.lua
copilot_node_command = "${lib.getExe pkgs.nodejs-slim-16_x}",
})
'';
};