From ec19466b7f3264559e4a2c7f55c61f3838c3e4d5 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sun, 4 May 2025 21:51:45 +0200 Subject: modules/nvim/plgs/nvim-cmp: Remove commented out partial enable There seems to be no reason for me to want this. --- modules/by-name/nv/nvim/plgs/nvim-cmp/default.nix | 25 +++++------------------ 1 file changed, 5 insertions(+), 20 deletions(-) (limited to 'modules/by-name/nv/nvim') diff --git a/modules/by-name/nv/nvim/plgs/nvim-cmp/default.nix b/modules/by-name/nv/nvim/plgs/nvim-cmp/default.nix index d3a20300..315f3fc7 100644 --- a/modules/by-name/nv/nvim/plgs/nvim-cmp/default.nix +++ b/modules/by-name/nv/nvim/plgs/nvim-cmp/default.nix @@ -66,32 +66,17 @@ in { ]; plugins.cmp = { - /* - TODO: integrate this: - ```lua - enabled = { - function() - -- disable completion in comments - local context = require 'cmp.config.context' - -- keep command mode completion enabled when cursor is in a comment - -- te - if vim.api.nvim_get_mode().mode == 'c' then - return true - else - return not context.in_treesitter_capture("comment") - and not context.in_syntax_group("Comment") - end - end - }, - ``` - */ enable = true; autoEnableSources = true; settings = { mapping = {}; - snippet.expand = "function(args) require('luasnip').lsp_expand(args.body) end"; + snippet.expand.__raw = '' + function(args) + require('luasnip').lsp_expand(args.body) + end + ''; sources = [ {name = "nvim_lsp";} -- cgit 1.4.1