From ca1a79f9affbc15a76cd1c32c9cb6cd0d403878f Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Tue, 27 Aug 2024 22:29:42 +0200 Subject: [PATCH] plugins: Add calculator.nvim --- plugins-full.vim.example | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins-full.vim.example b/plugins-full.vim.example index 5fdf935..a1e34c5 100644 --- a/plugins-full.vim.example +++ b/plugins-full.vim.example @@ -10,6 +10,8 @@ if has('nvim-0.5') Plug 'nvim-treesitter/nvim-treesitter-refactor', {'do': ':TSUpdate'} Plug 'robitx/gp.nvim' + + Plug 'vzze/calculator.nvim' endif if has('nvim-0.8') @@ -190,8 +192,13 @@ function PluginsConfigFull() } } }) + + vim.api.nvim_create_user_command("Calculate", "lua require(\"calculator\").calculate()", + { ["range"] = 1, ["nargs"] = 0 }) EOF + vmap gC :Calculate + set foldmethod=expr set foldexpr=nvim_treesitter#foldexpr() endif -- 2.39.5