From 9880747ac9f9e42540aa9ac02b5829eb14912151 Mon Sep 17 00:00:00 2001 From: Tilo K Date: Tue, 2 Jan 2024 02:13:31 +0100 Subject: [PATCH] Desc for refactor --- init.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/init.lua b/init.lua index 25a9a68..e954e08 100644 --- a/init.lua +++ b/init.lua @@ -276,7 +276,7 @@ require('nvim-treesitter.configs').setup { ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'typescript', 'vimdoc', 'vim' }, -- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!) - auto_install = false, + auto_install = true, highlight = { enable = true }, indent = { enable = true, disable = { 'python' } }, @@ -541,14 +541,14 @@ require('refactoring').setup({ -- Remaps for the refactoring operations currently offered by the plugin vim.api.nvim_set_keymap("v", "re", [[ lua require('refactoring').refactor('Extract Function')]], - { noremap = true, silent = true, expr = false }) + { noremap = true, silent = true, expr = false, desc = "Extract Function" }) vim.api.nvim_set_keymap("v", "rf", [[ lua require('refactoring').refactor('Extract Function To File')]], - { noremap = true, silent = true, expr = false }) + { noremap = true, silent = true, expr = false, desc = "Extract Function To File" }) vim.api.nvim_set_keymap("v", "rv", [[ lua require('refactoring').refactor('Extract Variable')]], - { noremap = true, silent = true, expr = false }) + { noremap = true, silent = true, expr = false, desc = "Extract Variable" }) vim.api.nvim_set_keymap("v", "ri", [[ lua require('refactoring').refactor('Inline Variable')]], - { noremap = true, silent = true, expr = false }) + { noremap = true, silent = true, expr = false, desc = "Inline Variable" }) -- Extract block doesn't need visual mode vim.api.nvim_set_keymap("n", "rb", [[ lua require('refactoring').refactor('Extract Block')]],