mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-01 00:24:54 +02:00
wrap requires in pcall
This commit is contained in:
parent
0e2ad0c1fe
commit
716f127e95
12 changed files with 58 additions and 16 deletions
|
@ -1,3 +1,7 @@
|
|||
local status_ok, telescope = pcall(require, "telescope")
|
||||
if not status_ok then
|
||||
return
|
||||
end
|
||||
local actions = require "telescope.actions"
|
||||
-- if O.plugin.trouble.active then
|
||||
-- local trouble = require("trouble.providers.telescope")
|
||||
|
@ -5,7 +9,7 @@ local actions = require "telescope.actions"
|
|||
-- Global remapping
|
||||
------------------------------
|
||||
-- '--color=never',
|
||||
require("telescope").setup {
|
||||
telescope.setup {
|
||||
defaults = {
|
||||
find_command = {
|
||||
"rg",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue