mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-07-20 18:54:25 +02:00
refactoring whichkey
This commit is contained in:
parent
e02c7c5abb
commit
a247d69c82
7 changed files with 90 additions and 80 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue