aboutsummaryrefslogtreecommitdiffstats
path: root/modules/by-name
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-05-04 21:51:45 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-05-04 21:51:45 +0200
commitec19466b7f3264559e4a2c7f55c61f3838c3e4d5 (patch)
tree43e72b0e55846aa38405d803a56e296040121a4d /modules/by-name
parentmodules/nvim/plgs/luasnip: Provide key mappings (diff)
downloadnixos-config-ec19466b7f3264559e4a2c7f55c61f3838c3e4d5.zip
modules/nvim/plgs/nvim-cmp: Remove commented out partial enable
There seems to be no reason for me to want this.
Diffstat (limited to '')
-rw-r--r--modules/by-name/nv/nvim/plgs/nvim-cmp/default.nix25
1 files changed, 5 insertions, 20 deletions
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";}