refactor(nvim): remove unnecessary rustaceanvim custom config

This commit is contained in:
Price Hiller 2024-12-26 16:14:16 -06:00
parent 5d1d8aeaa6
commit 67a833913d
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -94,42 +94,6 @@ return {
{ {
"mrcjkb/rustaceanvim", "mrcjkb/rustaceanvim",
lazy = false, lazy = false,
init = function()
vim.g.rustaceanvim = {
dap = {
adapter = {
type = "server",
port = "${port}",
executable = {
command = "codelldb",
args = { "--port", "${port}" },
},
},
},
server = {
default_settings = {
["rust-analyzer"] = {
cargo = {
targetDir = "target/rust-analyzer/",
},
checkOnSave = true,
rustfmt = {
rangeFormatting = {
enable = true,
},
},
},
},
},
tools = {
enable_clippy = true,
executor = require("rustaceanvim.executors").termopen,
hover_actions = {
replace_builtin_hover = false,
},
},
}
end,
config = false, config = false,
}, },
{ {
@ -274,8 +238,7 @@ return {
}, },
event = { "BufReadPre", "BufNewFile" }, event = { "BufReadPre", "BufNewFile" },
config = function() config = function()
local lsp_capabilities = local lsp_capabilities = require("blink.cmp").get_lsp_capabilities()
require("blink.cmp").get_lsp_capabilities()
local db_timer = vim.uv.new_timer() local db_timer = vim.uv.new_timer()
vim.api.nvim_create_autocmd("LspAttach", { vim.api.nvim_create_autocmd("LspAttach", {
callback = function(args) callback = function(args)