mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-08 19:46:06 +01:00
plugins/copilot-lsp: add module
This commit is contained in:
parent
e87e4b1812
commit
aa47ed384a
2 changed files with 42 additions and 0 deletions
24
plugins/by-name/copilot-lsp/default.nix
Normal file
24
plugins/by-name/copilot-lsp/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
18
tests/test-sources/plugins/by-name/copilot-lsp/default.nix
Normal file
18
tests/test-sources/plugins/by-name/copilot-lsp/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue