-
How would I go about integrating this with the following plugin, please? |
Beta Was this translation helpful? Give feedback.
Answered by
mightyiam
Mar 16, 2022
Replies: 2 comments 3 replies
-
It seems local lsp = require('lsp-zero')
lsp.preset('system-lsp')
local custom_attach = function(client, bufnr)
-- some code
end
lsp.on_attach(custom_attach)
lsp.setup_servers({'html', 'cssls'})
lsp.setup()
-- rust-tools setup
local lsp_capabilities = require('cmp_nvim_lsp').update_capabilities(
vim.lsp.protocol.make_client_capabilities()
)
require('rust-tools').setup({
server = {
capabilities = lsp_capabilities,
on_attach = function(client, bufnr)
custom_attach(client, bufnr)
-- more code
end,
}
}) Edit: sadly you'll have to setup your own keybindings in |
Beta Was this translation helpful? Give feedback.
3 replies
-
Since 3b6387e there is a way! |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mightyiam
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since 3b6387e there is a way!