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:
Pratik Tripathy
2025-07-29 11:25:08 +05:30
parent fb16a6a3f0
commit 8c52c7a881
7 changed files with 250 additions and 32 deletions

View File

@@ -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 }))