mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-26 15:06:45 +00:00
feat: bundle nodejs_16 slim with copilot & move copilot to maximal
This commit is contained in:
parent
71f4c7ecd4
commit
107b572e1c
2 changed files with 7 additions and 3 deletions
|
@ -148,8 +148,8 @@ inputs: let
|
||||||
};
|
};
|
||||||
|
|
||||||
vim.assistant = {
|
vim.assistant = {
|
||||||
copilot.enable = false;
|
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
|
#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 = {
|
vim.session = {
|
||||||
|
|
|
@ -13,11 +13,15 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
vim.startPlugins = ["copilot-lua"];
|
vim.startPlugins = [
|
||||||
|
"copilot-lua"
|
||||||
|
pkgs.nodejs-slim-16_x
|
||||||
|
];
|
||||||
|
|
||||||
vim.luaConfigRC.copilot = nvim.dag.entryAnywhere ''
|
vim.luaConfigRC.copilot = nvim.dag.entryAnywhere ''
|
||||||
require("copilot").setup({
|
require("copilot").setup({
|
||||||
-- available options: https://github.com/zbirenbaum/copilot.lua
|
-- available options: https://github.com/zbirenbaum/copilot.lua
|
||||||
|
copilot_node_command = "${lib.getExe pkgs.nodejs-slim-16_x}",
|
||||||
})
|
})
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue