fix: typo telscope

This commit is contained in:
asep.komarudin 2024-06-07 23:12:05 +07:00
parent 090f4c3d24
commit 27405a0f8a
2 changed files with 8 additions and 6 deletions

View file

@ -122,7 +122,9 @@ vim.g.pcode_indentscope = true
vim.g.pcode_minianimate = false vim.g.pcode_minianimate = false
vim.g.pcode_disable_cmpdoc = false vim.g.pcode_disable_cmpdoc = false
-- https://github.com/rachartier/tiny-devicons-auto-colors.nvim
vim.g.pcode_adaptive_color_icon = true vim.g.pcode_adaptive_color_icon = true
-- https://github.com/lukas-reineke/virt-column.nvim
vim.g.pcode_columnline = true vim.g.pcode_columnline = true
---@alias telescope_themes ---@alias telescope_themes
@ -130,5 +132,5 @@ vim.g.pcode_columnline = true
---| "dropdown" # see `telescope.themes.get_dropdown()` ---| "dropdown" # see `telescope.themes.get_dropdown()`
---| "ivy" # see `telescope.themes.get_ivy()` ---| "ivy" # see `telescope.themes.get_ivy()`
---| "center" # retain the default telescope theme ---| "center" # retain the default telescope theme
vim.g.pcode_telscope_theme_find_file = "center" vim.g.pcode_telescope_theme_find_file = "center"
vim.g.pcode_telscope_theme_live_grep = "dropdown" vim.g.pcode_telescope_theme_live_grep = "dropdown"

View file

@ -10,15 +10,15 @@ return {
local live_grep = { local live_grep = {
only_sort_text = true, only_sort_text = true,
} }
if vim.g.pcode_telscope_theme_find_file and vim.g.pcode_telscope_theme_find_file ~= "center" then if vim.g.pcode_telescope_theme_find_file and vim.g.pcode_telescope_theme_find_file ~= "center" then
find_files = { find_files = {
theme = vim.g.pcode_telscope_theme_find_file, theme = vim.g.pcode_telescope_theme_find_file,
hidden = true, hidden = true,
} }
end end
if vim.g.pcode_telscope_theme_live_grep and vim.g.pcode_telscope_theme_live_grep ~= "center" then if vim.g.pcode_telescope_theme_live_grep and vim.g.pcode_telescope_theme_live_grep ~= "center" then
live_grep = { live_grep = {
theme = vim.g.pcode_telscope_theme_live_grep, theme = vim.g.pcode_telescope_theme_live_grep,
only_sort_text = true, only_sort_text = true,
} }
end end