mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 08:41:43 +05:30
feat(neovim-rust): Rust LSP, debugging, testing and keymaps
- `rustaceanvim` for LSP config - Rust ft specific keymaps in `after/ftplugin` - `nvim-dap` for Rust debugging with codelldb - `rustaceanvim.neotest` for Rust testing - `rcasia/neotest-bash` for Bash testing - Better keymaps for running tests - Inlay hint UI improvements
This commit is contained in:
@@ -102,7 +102,8 @@ vim.api.nvim_create_autocmd("LspAttach", {
|
||||
|
||||
-- Native lsp inline virtual text / inlay hints
|
||||
if client and client.supports_method(vim.lsp.protocol.Methods.textDocument_inlayHint) then
|
||||
vim.lsp.inlay_hint.enable()
|
||||
vim.lsp.inlay_hint.enable(true)
|
||||
vim.api.nvim_set_hl(0, "LspInlayHint", { fg = "#5c7086", bg = "NONE" })
|
||||
|
||||
map("<leader>ch", function()
|
||||
vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled({ bufnr = event.buf }))
|
||||
|
||||
Reference in New Issue
Block a user