Comments (3)
tab drop
should work now in the latest commit (with ['ctrl-t'] = 'tab drop'
). Can you try and report if it works ?
from nvim-lspfuzzy.
Thank you so much, it works great!
from nvim-lspfuzzy.
I write some code like:
-------------------- FZF FUNCTIONS -------------------------
local function jump(entries)
...
-- A FZF action was used
if opts.fzf_action[key] then
if opts.fzf_action[key] == 'tab drop' then
for _, buf_info in ipairs(vim.fn.getbufinfo()) do
local uri = vim.uri_from_bufnr(buf_info.bufnr)
if uri == locations[1]['uri'] then
cmd('tab drop ' .. buf_info.name)
break
end
end
else
cmd(opts.fzf_action[key])
end
end
...
end
It's ugly but works fine for me, could you add option(like callback
) allow me rewrite that function?
from nvim-lspfuzzy.
Related Issues (20)
- Error expected table, got number when doing vim.lsp.buf.declaration HOT 3
- code action not works HOT 6
- Code action text missing sometimes (tsserver) HOT 4
- fzf doesn't scroll preview to actual position HOT 5
- Upstream workspace/applyEdit signature change breaks lspfuzzy HOT 5
- Expected table, got string error when calling vim.lsp.buf.definition() HOT 1
- Reopen the last results HOT 1
- Actions in fzf broken on nvim nightly HOT 3
- call lua function in action HOT 5
- let functional actions be the last callbacks to be called with selected items HOT 2
- @ojroques okay I am noticing that even after calling the action function, it automatically sets the qflist and opens that split, which defeats the purpose of my qf_list function. I we can let action take complete control over what happens with the selections, which makes it more like the last callback.
- switch to nvim-lua HOT 1
- breaking changes on neovim master HOT 1
- Why is codeaction not supported? HOT 2
- No error message shown in :LspDiagnostics command HOT 1
- Feature Request: Severity color in LspDiagnostics HOT 2
- 'textDocument/codeAction' not support? HOT 1
- Make work with fzf-lua
- Error when try to sink the fzf-result to quickfix window: set_qlist(a nil val) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvim-lspfuzzy.