LSP keymaps and syntax highlighting #430
Replies: 1 comment
-
|
Hey 👋 Since this has to do with nvchad, I'm marking this as a duplicate of #351 (reply in thread) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm really struggling to get the out of the box experience with this plugin. When trying to use the same keymaps as lspconfig in nvchad i can get that working, but the syntax highlighting then breaks. I appreciate syntax highlighting is nothing to do with rustaceanvim but clearly I'm doing something wrong with the setup. Here is the code I am using:
{ "mrcjkb/rustaceanvim", version = "^4", -- Recommended ft = { "rust" }, config = function(_, _) local on_attach = require("nvchad.configs.lspconfig").on_attach local on_init = require("nvchad.configs.lspconfig").on_init local capabilities = require("nvchad.configs.lspconfig").capabilities vim.g.rustaceanvim = { server = { on_attach = function(client, bufnr) vim.lsp.inlay_hint.enable(true, { bufnr = bufnr }) on_attach(client, bufnr) end, on_init = on_init, capabilities = capabilities, }, } end, lazy = false, }, I've searched elsewhere but can't seem to figure out what the problem is. Any guidance much appreciated!Beta Was this translation helpful? Give feedback.
All reactions