From 598ba954ec881268b88b405d4b2fc331aea166e6 Mon Sep 17 00:00:00 2001 From: Riku Takeuchi Date: Sun, 21 Jul 2024 15:28:25 +0900 Subject: [PATCH] feat: add rust lsp --- .../cui/templates/.config/nvim/lua/plugin/nvim-lspconfig.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/cui/templates/.config/nvim/lua/plugin/nvim-lspconfig.lua b/roles/cui/templates/.config/nvim/lua/plugin/nvim-lspconfig.lua index a4f2ba9..330c008 100644 --- a/roles/cui/templates/.config/nvim/lua/plugin/nvim-lspconfig.lua +++ b/roles/cui/templates/.config/nvim/lua/plugin/nvim-lspconfig.lua @@ -15,6 +15,11 @@ local on_attach = function(client, bufnr) vim.keymap.set('n', 'K', vim.lsp.buf.hover, bufopts) end +-- Rust +nvim_lsp.rust_analyzer.setup{ + on_attach = on_attach, +} + -- TypeScript nvim_lsp.tsserver.setup { on_attach = on_attach,