Skip to content

Commit

Permalink
fix(telescope): Force integer width.
Browse files Browse the repository at this point in the history
  • Loading branch information
DrKJeff16 committed Jun 5, 2024
1 parent 7c13091 commit bf0918c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lua/lazy_cfg/telescope/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ local load_ext = Telescope.load_extension
local Opts = {
defaults = {
layout_strategy = 'flex',
layout_config = { vertical = { width = vim.opt.columns:get() * 3 / 4 } },
layout_config = {
vertical = {
width = math.floor(vim.opt.columns:get() * 3 / 4),
},
},
mappings = {
i = {
['<C-h>'] = 'which_key',
Expand All @@ -54,7 +58,6 @@ local Opts = {
find_files = { theme = 'dropdown' },
lsp_definitions = { theme = 'dropdown' },
pickers = { theme = 'dropdown' },
notify = { theme = 'dropdown' },
},
}

Expand Down

0 comments on commit bf0918c

Please sign in to comment.