-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
You might try something like vim-rooter to change vim’s working directory based on the currently open buffer.
" helper function to be able to open files picked from fzf, in a split or a new tab fun! Edit_file(lines) abort if len(a:lines) < 2 | return | endif let cmd = get({ \ 'ctrl-s': 'split', \ 'ctrl-v': 'vertical split', \ 'ctrl-t': 'tabe'}, a:lines[0], 'e') let files = a:lines[1:] for file in files exe cmd escape(file, ' %#\') endfor endfun " helper function to put fzf into a floating buffer " https://github.com/naps62/dotfiles/blob/b6df1166ce3b65ab408147a58201aa9c2cccd691/config/nvim/rc/functions.vim#L69-L87 fun! Floating_fzf() let buf = nvim_create_buf(v:false, v:true) call setbufvar(buf, '&signcolumn', 'no') let width = min([float2nr(&columns - (&columns * 2 / 10)), 130]) let height = 30 let y = float2nr((&lines - height) / 2) let x = float2nr((&columns - width) / 2) let opts = { \ 'relative': 'editor', \ 'row': y, \ 'col': x, \ 'width': width, \ 'height': height \ } call nvim_open_win(buf, v:true, opts) endfun " helper function to list files fun! Subdir_files() abort return 'fd --type f --color always --follow --hidden --no-ignore --exclude ".git" --exclude "'.expand('%:t').'"' endfun " the command that utilizes one of fzf.vim functions to do the fuzzy searching com! FzFilesSubdir call fzf#run({ \ 'source': Subdir_files(), \ 'sink*': function('Edit_file'), \ 'options': '--ansi --expect=ctrl-t,ctrl-v,ctrl-s --tiebreak=end', \ 'dir': expand('%:h'), \ 'window': 'call Floating_fzf()', \ 'down': '30%'}) " bind a key for faster invocation (optional) nn fs :FzFilesSubdir