From: Stefan Huber Date: Tue, 27 Aug 2024 20:29:42 +0000 (+0200) Subject: plugins: Add calculator.nvim X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=ca1a79f9affbc15a76cd1c32c9cb6cd0d403878f;p=vimconf.git plugins: Add calculator.nvim --- 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