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
New Command
See lua code
local crates = require('crates') local opts = { silent = true } crates.setup { null_ls = { enabled = ${boolToString cfg.crates.codeActions}, name = "crates.nvim", } } local function show_documentation() local filetype = vim.bo.filetype if filetype == "vim" or filetype == "help" then vim.cmd('h '..vim.fn.expand('<cword>')) elseif filetype == "man" then vim.cmd('Man '..vim.fn.expand('<cword>')) elseif vim.fn.expand('%:t') == 'Cargo.toml' and require('crates').popup_available() then crates.show_popup() else vim.lsp.buf.hover() end end vim.keymap.set("n", "<leader>cf", crates.show_features_popup, opts) vim.keymap.set('n', 'K', show_documentation, opts)
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
🏷️ Feature Type
New Command
🔖 Feature description
See lua code
✔️ Solution
❓ Alternatives
No response
📝 Additional Context
No response
The text was updated successfully, but these errors were encountered: