diff options
author | christianchiarulli <[email protected]> | 2021-07-06 19:15:37 -0400 |
---|---|---|
committer | christianchiarulli <[email protected]> | 2021-07-06 19:15:37 -0400 |
commit | 0e2ad0c1fec50a24177129c89b3edb9007776caf (patch) | |
tree | 795f0e9ed5c9f9fa325e218a73de69a1354c2ce8 /lua/plugins.lua | |
parent | f6e377fcfed932b71456a0b0780c1f5ed22cabd4 (diff) |
testing autosave config poetnetially unstable
Diffstat (limited to 'lua/plugins.lua')
-rw-r--r-- | lua/plugins.lua | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lua/plugins.lua b/lua/plugins.lua index 50f96517..33efdf05 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -202,14 +202,18 @@ return require("packer").startup(function(use) use { "mfussenegger/nvim-dap", config = function() - require "dap" + 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 = "", }) - require("dap").defaults.fallback.terminal_win_cmd = "50vsplit new" + dap.defaults.fallback.terminal_win_cmd = "50vsplit new" end, disable = not O.plugin.debug.active, } @@ -219,7 +223,7 @@ return require("packer").startup(function(use) "numToStr/FTerm.nvim", event = "BufWinEnter", config = function() - require('lv-floatterm').config() + require("lv-floatterm").config() end, disable = not O.plugin.floatterm.active, } @@ -235,7 +239,9 @@ return require("packer").startup(function(use) use { "nvim-telescope/telescope-project.nvim", event = "BufRead", - setup = function () vim.cmd[[packadd telescope.nvim]] end, + setup = function() + vim.cmd [[packadd telescope.nvim]] + end, disable = not O.plugin.telescope_project.active, } |