neovim: copilot in cmp
This commit is contained in:
@@ -14,28 +14,40 @@ neovim.override {
|
||||
configure = {
|
||||
vimAlias = true;
|
||||
viAlias = true;
|
||||
customRC = ''
|
||||
source ${./shared.vim}
|
||||
source ${./init.vim}
|
||||
let g:snippet_directory = '${vimPlugins.friendly-snippets}'
|
||||
luafile ${./init.lua}
|
||||
''
|
||||
+ lib.optionalString (stylixColors != null) (
|
||||
with stylixColors.withHashtag;
|
||||
''
|
||||
luafile ${writeText "colors.lua" ''
|
||||
require('base16-colorscheme').setup({
|
||||
base00 = '${base00}', base01 = '${base01}', base02 = '${base02}', base03 = '${base03}',
|
||||
base04 = '${base04}', base05 = '${base05}', base06 = '${base06}', base07 = '${base07}',
|
||||
base08 = '${base08}', base09 = '${base09}', base0A = '${base0A}', base0B = '${base0B}',
|
||||
base0C = '${base0C}', base0D = '${base0D}', base0E = '${base0E}', base0F = '${base0F}'
|
||||
customRC =
|
||||
|
||||
lib.optionalString withCopilot (''
|
||||
luafile ${writeText "copilot.lua" ''
|
||||
require("copilot").setup({
|
||||
suggestion = { enabled = false },
|
||||
panel = { enabled = false }
|
||||
})
|
||||
|
||||
require("copilot_cmp").setup()
|
||||
''}
|
||||
'')
|
||||
+ ''
|
||||
source ${./shared.vim}
|
||||
source ${./init.vim}
|
||||
let g:snippet_directory = '${vimPlugins.friendly-snippets}'
|
||||
luafile ${./init.lua}
|
||||
''
|
||||
)
|
||||
+ lib.optionalString (colorscheme != null) ''
|
||||
colorscheme ${colorscheme}
|
||||
'';
|
||||
+ lib.optionalString (stylixColors != null) (
|
||||
with stylixColors.withHashtag;
|
||||
''
|
||||
luafile ${writeText "colors.lua" ''
|
||||
require('base16-colorscheme').setup({
|
||||
base00 = '${base00}', base01 = '${base01}', base02 = '${base02}', base03 = '${base03}',
|
||||
base04 = '${base04}', base05 = '${base05}', base06 = '${base06}', base07 = '${base07}',
|
||||
base08 = '${base08}', base09 = '${base09}', base0A = '${base0A}', base0B = '${base0B}',
|
||||
base0C = '${base0C}', base0D = '${base0D}', base0E = '${base0E}', base0F = '${base0F}'
|
||||
})
|
||||
''}
|
||||
''
|
||||
)
|
||||
+ lib.optionalString (colorscheme != null) ''
|
||||
colorscheme ${colorscheme}
|
||||
'';
|
||||
packages.nvim = with vimPlugins; {
|
||||
start = [
|
||||
base16-nvim
|
||||
@@ -81,7 +93,10 @@ neovim.override {
|
||||
}
|
||||
)
|
||||
]
|
||||
++ lib.optional withCopilot vimPlugins.copilot-vim;
|
||||
++ lib.optionals withCopilot [
|
||||
vimPlugins.copilot-lua
|
||||
vimPlugins.copilot-cmp
|
||||
];
|
||||
opt = [
|
||||
csv
|
||||
dhall-vim
|
||||
|
||||
Reference in New Issue
Block a user