diff options
author | Arnold Sommerfeld <sommerfeld@strisemarx.com> | 2024-04-11 08:53:20 +0100 |
---|---|---|
committer | Arnold Sommerfeld <sommerfeld@strisemarx.com> | 2024-04-11 08:53:20 +0100 |
commit | 9a7a881aaff895bd1208eefa6c65d4ecffaaf25e (patch) | |
tree | 59aa74638898d596bcb32f59a15e6e9a138b8f9e /home/.config/nvim/lua/custom | |
parent | 925dc6aa5c413bcb6822a2578fee4e9c029839f7 (diff) | |
download | dotfiles-9a7a881aaff895bd1208eefa6c65d4ecffaaf25e.tar.gz dotfiles-9a7a881aaff895bd1208eefa6c65d4ecffaaf25e.tar.bz2 dotfiles-9a7a881aaff895bd1208eefa6c65d4ecffaaf25e.zip |
[nvim] Use rustacean instead of bare rust-analyzer
Diffstat (limited to 'home/.config/nvim/lua/custom')
-rw-r--r-- | home/.config/nvim/lua/custom/plugins/init.lua | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/home/.config/nvim/lua/custom/plugins/init.lua b/home/.config/nvim/lua/custom/plugins/init.lua index 784995c..2ee8406 100644 --- a/home/.config/nvim/lua/custom/plugins/init.lua +++ b/home/.config/nvim/lua/custom/plugins/init.lua @@ -931,7 +931,6 @@ return { }, ruff_lsp = {}, pyright = {}, - rust_analyzer = {}, clangd = { cmd = { "clangd", @@ -1046,6 +1045,23 @@ return { }, }, { + 'mrcjkb/rustaceanvim', + config = function() + vim.g.rustaceanvim = { + server = { + on_attach = function(client, bufnr) + require("cfg.lsp").on_attach_wrapper( + client, + bufnr, + { auto_format = true } + ) + end, + }, + } + end, + ft = { 'rust' }, + }, + { 'nvim-lualine/lualine.nvim', opts = { options = { |