Skip to content

Commit

Permalink
[nvim] fix the interaction between titlestring and custom vim.ui.select
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitmel committed Dec 19, 2021
1 parent f44f364 commit 163a8d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions nvim/lua/dotfiles/lsp/custom_ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ function vim_ui.select(items, opts, on_choice)
local original_bufnr = vim.api.nvim_get_current_buf()

local immediately_returned_lines = vim.call('fzf#run', {
name = 'vim.ui.select',
_dotfiles_lsp_custom_ui_marker = buf_marker,

source = choices,
Expand Down
2 changes: 1 addition & 1 deletion nvim/plugin/interface.vim
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ set title
let g:dotfiles_titlestring_user_host = $USER . '@' . substitute(hostname(), '\.local$', '', '')
function! DotfilesTitlestring() abort
if &filetype ==# 'fzf' && exists('b:fzf')
let str = 'FZF %{b:fzf.name}'
let str = "FZF %{get(b:fzf,'name','')}"
else
let str = '%F%m'
endif
Expand Down

0 comments on commit 163a8d3

Please sign in to comment.