mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 10:35:08 +02:00
fix(telescope): backwards compability (#3596)
* fix(telescope): no more errors if theme is nil * fix: backwards compability
This commit is contained in:
parent
af73e3e3c4
commit
38587e2241
1 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,7 @@ function M.config()
|
|||
selection_strategy = "reset",
|
||||
sorting_strategy = nil,
|
||||
layout_strategy = nil,
|
||||
layout_config = nil,
|
||||
layout_config = {},
|
||||
vimgrep_arguments = {
|
||||
"rg",
|
||||
"--color=never",
|
||||
|
@ -127,7 +127,7 @@ function M.setup()
|
|||
|
||||
local telescope = require "telescope"
|
||||
|
||||
local theme = require("telescope.themes")["get_" .. lvim.builtin.telescope.theme]
|
||||
local theme = require("telescope.themes")["get_" .. (lvim.builtin.telescope.theme or "")]
|
||||
if theme then
|
||||
lvim.builtin.telescope.defaults = theme(lvim.builtin.telescope.defaults)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue