Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能否实现:将nvim-lspconfig的结果通过leaderf的UI显示输出 #938

Open
fzhzhen1987 opened this issue Jul 29, 2022 · 0 comments
Open

Comments

@fzhzhen1987
Copy link

fzhzhen1987 commented Jul 29, 2022

nvim-lsp的type_definition,definition,declaration,references的结果通过leaderf的UI来显示,
leaderf比nvim自带的好用和好看和配置简单。 希望可以把代码阅读相关的整合到一个插件的UI,达到统一

-- See :help vim.lsp.* for documentation on any of the below functions
buf_set_keymap('n', 'J', 'lua vim.lsp.buf.hover()', opts)
buf_set_keymap('n', 'jt', 'lua vim.lsp.buf.type_definition()', opts)
buf_set_keymap('n', 'jd', 'lua vim.lsp.buf.definition()', opts)
buf_set_keymap('n', 'jD', 'lua vim.lsp.buf.declaration()', opts)
buf_set_keymap('n', 'jr', 'lua vim.lsp.buf.references()', opts)

buf_set_keymap('n', '<space>jn', '<cmd>lua vim.lsp.buf.rename()<CR>', opts)

buf_set_keymap('n', '<space>j[', '<cmd>lua vim.diagnostic.goto_prev()<CR>', opts)
buf_set_keymap('n', '<space>j]', '<cmd>lua vim.diagnostic.goto_next()<CR>', opts)
buf_set_keymap('n', '<space>jw', '<cmd>lua vim.diagnostic.setloclist()<CR>', opts)
buf_set_keymap('n', '<space>jo', '<cmd>lua vim.diagnostic.open_float()<CR>', opts)

buf_set_keymap('n', '<space>jp', '<cmd>lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))<CR>', opts)
@fzhzhen1987 fzhzhen1987 changed the title 能否实现:将nvim-lspconfig的结果通过leaderf的UI显示输入 能否实现:将nvim-lspconfig的结果通过leaderf的UI显示输出 Jul 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant