Current NEOVIM config

Let's use this post to share neovim setups for mojo!
No description
3 Replies
Sarctiann
SarctiannOP4w ago
2024-12-30 ~/.congif/nvim/lua/plugins/mojo-conf.lua
return {
"neovim/nvim-lspconfig",
opts = {
servers = {
mojo = {
-- this is required if you use magic-cli instead of modular-cli
on_new_config = function()
local result = vim.fn.system("magic shell")
if vim.v.shell_error ~= 0 then
vim.notify("error running `magic shell`: " .. result, vim.log.levels.error)
end
end,
},
},
},
}
return {
"neovim/nvim-lspconfig",
opts = {
servers = {
mojo = {
-- this is required if you use magic-cli instead of modular-cli
on_new_config = function()
local result = vim.fn.system("magic shell")
if vim.v.shell_error ~= 0 then
vim.notify("error running `magic shell`: " .. result, vim.log.levels.error)
end
end,
},
},
},
}
Ket
Ket3w ago
Hey, @Sarctiann, maybe move this to #community-showcase or #resources ?
Sarctiann
SarctiannOP3w ago
You are totally right!, Thanks @Ket

Did you find this page helpful?