From f8c09a13e4f276d98bd575b716ee52222c883844 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 4 Sep 2024 18:36:35 +0100 Subject: [PATCH] Add cmp-calc Show calculations as a completion suggestion. https://github.com/hrsh7th/cmp-calc --- lib/default.nix | 1 + plugin/completion.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/default.nix b/lib/default.nix index 7865310..6c25c4e 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -141,6 +141,7 @@ rec { # Completion cmp-buffer + cmp-calc cmp-cmdline cmp-nvim-lsp cmp-path diff --git a/plugin/completion.lua b/plugin/completion.lua index e0abadc..049dd92 100644 --- a/plugin/completion.lua +++ b/plugin/completion.lua @@ -32,6 +32,7 @@ cmp.setup { sources = { { name = "nvim_lsp" }, { name = "nvim_lua" }, + { name = "calc" }, { name = "luasnip" }, },