nvim: replace unmaintained rust plugin with new one
This commit is contained in:
parent
645a50974b
commit
59acd798cf
|
@ -17,39 +17,6 @@ vim.diagnostic.config({
|
|||
|
||||
local nvim_lsp = require 'lspconfig'
|
||||
|
||||
require 'rust-tools'.setup {
|
||||
tools = {
|
||||
autoSetHints = true,
|
||||
hover_with_actions = true,
|
||||
runnables = {
|
||||
use_telescope = true
|
||||
},
|
||||
inlay_hints = {
|
||||
show_parameter_hints = false,
|
||||
parameter_hints_prefix = "",
|
||||
other_hints_prefix = "",
|
||||
},
|
||||
},
|
||||
|
||||
-- all the opts to send to nvim-lspconfig
|
||||
-- these override the defaults set by rust-tools.nvim
|
||||
-- see https://github.com/neovim/nvim-lspconfig/blob/master/CONFIG.md#rust_analyzer
|
||||
server = {
|
||||
-- on_attach is a callback called when the language server attachs to the buffer
|
||||
-- on_attach = on_attach,
|
||||
settings = {
|
||||
-- to enable rust-analyzer settings visit:
|
||||
-- https://github.com/rust-analyzer/rust-analyzer/blob/master/docs/user/generated_config.adoc
|
||||
["rust-analyzer"] = {
|
||||
-- enable clippy on save
|
||||
checkOnSave = {
|
||||
command = "clippy"
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
require("neodev").setup {
|
||||
library = { plugins = { "neotest" }, types = true },
|
||||
}
|
||||
|
|
|
@ -96,7 +96,7 @@ return require('packer').startup(function(use)
|
|||
use "rafamadriz/friendly-snippets"
|
||||
|
||||
-- Adds extra functionality over rust analyzer
|
||||
use 'simrat39/rust-tools.nvim'
|
||||
use 'mrcjkb/rustaceanvim'
|
||||
|
||||
use "IndianBoy42/tree-sitter-just"
|
||||
|
||||
|
|
Loading…
Reference in New Issue