diff options
author | LostNeophyte <[email protected]> | 2023-01-10 09:58:48 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2023-01-10 09:58:48 +0100 |
commit | 38587e22411a09a102781215c3653f47a1915e28 (patch) | |
tree | a8f69e4d0e3cf5006ad245d5377cb418b24f6731 /lua/lvim | |
parent | af73e3e3c4ad3c013c4da1348c24dd9d22c7fff9 (diff) |
fix(telescope): backwards compability (#3596)
* fix(telescope): no more errors if theme is nil
* fix: backwards compability
Diffstat (limited to 'lua/lvim')
-rw-r--r-- | lua/lvim/core/telescope.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/lvim/core/telescope.lua b/lua/lvim/core/telescope.lua index a9f4606b..a1b17e04 100644 --- a/lua/lvim/core/telescope.lua +++ b/lua/lvim/core/telescope.lua @@ -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 |