1
0
Fork 0

random work on nvim

This commit is contained in:
Luca Bilke 2024-01-28 13:45:35 +01:00
commit 975e7bd185
11 changed files with 175 additions and 65 deletions
.config/nvim/lua/plugins/misc

View file

@ -0,0 +1,24 @@
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