1
0
Fork 0
dotfiles/.config/nvim/lua/plugins/misc/rustacean.lua

25 lines
692 B
Lua
Raw Normal View History

2024-01-28 13:45:35 +01:00
local M = { "mrcjkb/rustaceanvim" }
M.build = ":MasonInstall codelldb"
M.ft = { "rust" }
M.init = function()
local extension_path = os.getenv("XDG_DATA_HOME") .. "/nvim/mason/packages/codelldb/extension/"
local codelldb_path = extension_path .. "apapter/codelldb"
local liblldb_path = extension_path .. "lldb/lib/liblldb.so"
local adapter = require("rustaceanvim.config").get_codelldb_adapter(codelldb_path, liblldb_path)
vim.g.rustaceanvim = function()
return {
dap = {
adapter = adapter
},
server = {
on_attach = require("funcs").lsp_on_attach
},
}
end
end
return M