Deleted a bunch of unneeded files

This commit is contained in:
2025-05-01 14:08:52 +03:00
parent a070aee731
commit 19c2b2e8bb
6 changed files with 37 additions and 548 deletions

View File

@@ -3,6 +3,42 @@ return {
version = '^5',
lazy = false, -- already lazy
init = function()
require('rustaceanvim')
---@type RustaceanOpts
vim.g.rustaceanvim = {
---@type RustaceanToolsOpts
tools = {
float_win_config = {
border = 'rounded',
},
},
---@type RustaceanLspClientOpts
server = {
on_attach = function(_, bufnr)
local keymaps = {
{ { 'n', 'i' }, '<M-Enter>', '<cmd>RustLsp codeAction<cr>', { desc = 'Code Action' } },
}
for _, keymap in ipairs(keymaps) do
local modes = keymap[1]
local lhs = keymap[2]
local rhs = keymap[3]
local opts = keymap[4]
opts.buffer = bufnr
vim.keymap.set(modes, lhs, rhs, opts)
end
end,
default_settings = {
['rust-analyzer'] = {
semanticHighlighting = {
operator = { specialization = { enable = true } },
punctuation = { enable = true, specialization = { enable = true } },
},
},
},
},
---@type RustaceanDapOpts
dap = {},
}
end,
}