diff --git a/.config/lvim/config.lua b/.config/lvim/config.lua index d651022..87d53bf 100644 --- a/.config/lvim/config.lua +++ b/.config/lvim/config.lua @@ -23,6 +23,7 @@ vim.opt.guifont = "JetBrainsMono Nerd Font Mono:h12" lvim.leader = "space" -- add your own keymapping lvim.keys.normal_mode[""] = ":w" +lvim.builtin.which_key.mappings['W'] = { ":w", "Save Buffer" } lvim.format_on_save = { timeout = 5000, } @@ -64,16 +65,6 @@ lvim.builtin.which_key.mappings["t"] = { w = { "Trouble workspace_diagnostics", "Wordspace Diagnostics" }, } -lvim.builtin.which_key.mappings['lC'] = { - name = "+Convert Case", - c = { "CamelToHyphen!", "Camel => Kebab/Hyphen" }, - C = { "CamelToSnake!", "Camel => Snake" }, - h = { "HyphenToCamel!", "Kebab/Hyphen => Camel" }, - H = { "HyphenToSnake!", "Kebab/Hyphen => Snake" }, - s = { "SnakeToCamel!", "Snake => Camel" }, - S = { "SnakeToHyphen!", "Snake => Kebab/Hyphen" }, -} - lvim.builtin.which_key.mappings['w'] = { name = "+Window", s = { "split", "Split Horizontal" }, @@ -421,7 +412,7 @@ lvim.plugins = { end, }, { - "christianrondeau/vim-base64" + 'taybart/b64.nvim', }, { 'b0o/incline.nvim', @@ -429,8 +420,21 @@ lvim.plugins = { require('incline').setup() end, }, + { + "stevearc/dressing.nvim", + }, + { + "ziontee113/icon-picker.nvim", + config = function() + require("icon-picker") + + vim.keymap.set("n", "i", "PickEverything", { noremap = true, silent = true }) + vim.keymap.set("i", "", "PickEverythingInsert", { noremap = true, silent = true }) -- opt-i on Mac + end, + }, } + -- set additional formatters local formatters = require "lvim.lsp.null-ls.formatters" formatters.setup { @@ -510,3 +514,26 @@ lvim.builtin.which_key.mappings["P"] = { "lua require'telescope'.extensions "Projects" } lvim.builtin.which_key.mappings["`"] = { ":edit #", "Last Buffer" } lvim.builtin.which_key.mappings["lT"] = { "lua Toggle_lsp_lines()", "Toggle LSP Lines" } + +lvim.builtin.which_key.mappings["u"] = { + name = "+Text Utils", + e = { "PickEverything", "Insert Emoji/Char" }, + c = { + name = "+Convert Case", + c = { "CamelToHyphen!", "Camel => Kebab/Hyphen" }, + C = { "CamelToSnake!", "Camel => Snake" }, + h = { "HyphenToCamel!", "Kebab/Hyphen => Camel" }, + H = { "HyphenToSnake!", "Kebab/Hyphen => Snake" }, + s = { "SnakeToCamel!", "Snake => Camel" }, + S = { "SnakeToHyphen!", "Snake => Kebab/Hyphen" }, + } +} + +lvim.builtin.which_key.vmappings["u"] = { + name = "+Text Utils", + b = { + name = "+Base 64", + e = { ":lua require('b64').encode()", "Encode Base64" }, + d = { ":lua require('b64').decode()", "Decode Base64" }, + } +}