diff options
author | christianchiarulli <[email protected]> | 2021-07-07 19:27:27 -0400 |
---|---|---|
committer | christianchiarulli <[email protected]> | 2021-07-07 19:27:27 -0400 |
commit | a247d69c82109230656c6eb10a7824794ee5e911 (patch) | |
tree | 56524641892db02812cfcc0e7f2eba8fd6670db5 /lua/plugins.lua | |
parent | e02c7c5abb4fec1cc51588c96b6b4fdff938d1c2 (diff) |
refactoring whichkey
Diffstat (limited to 'lua/plugins.lua')
-rw-r--r-- | lua/plugins.lua | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/lua/plugins.lua b/lua/plugins.lua index 89e63b36..dae431a0 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -79,7 +79,13 @@ return require("packer").startup(function(use) } -- whichkey - use { "folke/which-key.nvim" } + use { + "folke/which-key.nvim", + config = function() + require "lv-which-key" + end, + event = "BufWinEnter", + } -- Autopairs use { @@ -209,18 +215,7 @@ return require("packer").startup(function(use) use { "mfussenegger/nvim-dap", config = function() - local status_ok, dap = pcall(require, "dap") - if not status_ok then - return - end - -- require "dap" - vim.fn.sign_define("DapBreakpoint", { - text = "ï—£", - texthl = "LspDiagnosticsSignError", - linehl = "", - numhl = "", - }) - dap.defaults.fallback.terminal_win_cmd = "50vsplit new" + require "lv-dap" end, disable = not O.plugin.debug.active, } @@ -228,7 +223,7 @@ return require("packer").startup(function(use) -- Floating terminal use { "numToStr/FTerm.nvim", - event = "BufWinEnter", + event = "BufRead", config = function() require("lv-floatterm").config() end, |