We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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-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)
:help vim.lsp.*
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)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
nvim-lsp的type_definition,definition,declaration,references的结果通过leaderf的UI来显示,
leaderf比nvim自带的好用和好看和配置简单。 希望可以把代码阅读相关的整合到一个插件的UI,达到统一
-- See
:help vim.lsp.*
for documentation on any of the below functionsbuf_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)
The text was updated successfully, but these errors were encountered: