aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/home/.config/nvim/lua/custom
diff options
context:
space:
mode:
authorLibravatar Arnold Sommerfeld <sommerfeld@strisemarx.com>2024-04-11 08:53:20 +0100
committerLibravatar Arnold Sommerfeld <sommerfeld@strisemarx.com>2024-04-11 08:53:20 +0100
commit9a7a881aaff895bd1208eefa6c65d4ecffaaf25e (patch)
tree59aa74638898d596bcb32f59a15e6e9a138b8f9e /home/.config/nvim/lua/custom
parent925dc6aa5c413bcb6822a2578fee4e9c029839f7 (diff)
downloaddotfiles-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.lua18
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 = {