aboutsummaryrefslogtreecommitdiffstats
path: root/modules/tools/nixvim/plugins/cmp.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/tools/nixvim/plugins/cmp.nix')
-rw-r--r--modules/tools/nixvim/plugins/cmp.nix36
1 files changed, 18 insertions, 18 deletions
diff --git a/modules/tools/nixvim/plugins/cmp.nix b/modules/tools/nixvim/plugins/cmp.nix
index b02c17e..855a4d5 100644
--- a/modules/tools/nixvim/plugins/cmp.nix
+++ b/modules/tools/nixvim/plugins/cmp.nix
@@ -1,22 +1,22 @@
{ config, lib, ... }:
{
- config.programs.nixvim.plugins.cmp = lib.mkIf config.tools.nixvim.enable {
- enable = true;
- autoEnableSources = true;
- settings = {
- snippet.expand = "function(args) require('luasnip').lsp_expand(args.body) end";
- mapping = {
- "<C-Space>" = "cmp.mapping.complete()";
- "<CR>" = "cmp.mapping.confirm({ select = true })";
- "<Tab>" = "cmp.mapping.select_next_item()";
- "<S-Tab>" = "cmp.mapping.select_prev_item()";
- };
- sources = [
- { name = "nvim_lsp"; }
- { name = "path"; }
- { name = "buffer"; }
- ];
- };
- };
+ config.programs.nixvim.plugins.cmp = lib.mkIf config.tools.nixvim.enable {
+ enable = true;
+ autoEnableSources = true;
+ settings = {
+ snippet.expand = "function(args) require('luasnip').lsp_expand(args.body) end";
+ mapping = {
+ "<C-Space>" = "cmp.mapping.complete()";
+ "<CR>" = "cmp.mapping.confirm({ select = true })";
+ "<Tab>" = "cmp.mapping.select_next_item()";
+ "<S-Tab>" = "cmp.mapping.select_prev_item()";
+ };
+ sources = [
+ { name = "nvim_lsp"; }
+ { name = "path"; }
+ { name = "buffer"; }
+ ];
+ };
+ };
}