From d6994f9535063b315f265ca4c8f76ee0c9ce25b2 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Mon, 8 May 2023 23:05:14 +0200 Subject: [PATCH] update --- conf/lvim.lua | 45 +++++++++++++++++++++++++++++++++++---------- 1 file changed, 35 insertions(+), 10 deletions(-) diff --git a/conf/lvim.lua b/conf/lvim.lua index d22ec53..60d6e6c 100644 --- a/conf/lvim.lua +++ b/conf/lvim.lua @@ -18,22 +18,38 @@ lvim.format_on_save.enabled = false lvim.colorscheme = "onedark_dark" lvim.background = "dark" lvim.transparent_window = true +-- to enable neo-tree file browsing, comment the following +lvim.builtin.nvimtree.active = false -- to disable icons and use a minimalist setup, uncomment the following -- lvim.use_icons = false --- keymappings [view all the defaults by pressing Lk] +-- variables +-- + + + +-- functions +-- + + + +-- keymappings [view all the defaults by pressing Lvk] -- lvim.leader = ";" lvim.keys.insert_mode[";;"] = "" -lvim.keys.normal_mode[""] = ":w" -lvim.keys.normal_mode[""] = ":redo" -lvim.keys.normal_mode[""] = ":undo" -lvim.keys.normal_mode[""] = "<<" -lvim.keys.normal_mode[""] = ">>" + +lvim.keys.normal_mode[""] = "w" +lvim.keys.normal_mode[""] = "redo" +lvim.keys.normal_mode[""] = "undo" +lvim.keys.normal_mode[""] = ":<" +lvim.keys.normal_mode[""] = ":>" + +-- remap neo-tree shortcut to rnvimr +lvim.lsp.buffer_mappings.normal_mode[';e'] = { "RnvimrToggle", "File explorer" } lvim.builtin.which_key.mappings["d"] = lvim.builtin.which_key.mappings[";"] @@ -331,13 +347,22 @@ lvim.plugins = { }) end, }, + { + "kevinhwang91/rnvimr", + cmd = "RnvimrToggle", + config = function() + vim.g.rnvimr_draw_border = 1 + vim.g.rnvimr_pick_enable = 1 + vim.g.rnvimr_bw_enable = 1 + end, + }, -- suda { 'lambdalisue/suda.vim', - -- setup = function() - -- -- vim.g.prompt = 'Mot de passe: ', - -- vim.g.suda_smart_edit = 1, - -- end, + config = function() + vim.g.prompt = 'Mot de passe: ' + vim.g.suda_smart_edit = 1 + end, }, -- telescope-project {