Call on_attach from lsp_config in rust

This commit is contained in:
Oliver Hartmann 2024-02-14 13:07:49 +01:00
parent e829e4b1be
commit f76909ecf4

View File

@ -8,6 +8,7 @@ return {
local options = { noremap = true, silent = false, buffer = bufnr } local options = { noremap = true, silent = false, buffer = bufnr }
vim.keymap.set('n', '<space>y', function() vim.cmd.RustLsp { 'hover', 'actions' } end, vim.keymap.set('n', '<space>y', function() vim.cmd.RustLsp { 'hover', 'actions' } end,
vim.tbl_extend('error', options, { desc = 'Hover' })) vim.tbl_extend('error', options, { desc = 'Hover' }))
require('plugins.lspconfig').on_attach(client, bufnr)
end end
} }
} }