random work on nvim
This commit is contained in:
parent
1fd28c9ffb
commit
975e7bd185
11 changed files with 175 additions and 65 deletions
.config/nvim/lua/plugins/misc
24
.config/nvim/lua/plugins/misc/rustacean.lua
Normal file
24
.config/nvim/lua/plugins/misc/rustacean.lua
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue