1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-08 11:36:07 +01:00

plugins/copilot-lsp: add module

This commit is contained in:
Austin Horstman 2025-10-03 22:02:50 -05:00
parent e87e4b1812
commit aa47ed384a
2 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,24 @@
{ lib, ... }:
lib.nixvim.plugins.mkNeovimPlugin {
name = "copilot-lsp";
package = "copilot-lsp";
description = ''
A lightweight and extensible Neovim plugin for integrating GitHub Copilot's AI-powered
code suggestions via Language Server Protocol (LSP).
> [!NOTE]
> This plugin requires the `copilot-language-server`.
> Either enable through `copilot-lua` plugin or install manually.
'';
maintainers = [ lib.maintainers.khaneliman ];
settingsExample = {
nes = {
move_count_threshold = 5;
distance_threshold = 100;
reset_on_approaching = false;
};
};
}

View file

@ -0,0 +1,18 @@
{
empty = {
plugins.copilot-lsp.enable = true;
};
defaults = {
plugins.copilot-lsp = {
enable = true;
settings = {
move_count_threshold = 3;
distance_threshold = 40;
clear_on_large_distance = true;
count_horizontal_moves = true;
reset_on_approaching = true;
};
};
};
}