From fd535ef8094cf1e8fd1d045b69189de79c472ae5 Mon Sep 17 00:00:00 2001 From: Jared Rieger Date: Thu, 2 Dec 2021 21:05:55 +0100 Subject: [PATCH] docs: Add troubleshooting doc for M1 Macs --- docs/troubleshooting/README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/troubleshooting/README.md b/docs/troubleshooting/README.md index d10b9f91..60a41abd 100644 --- a/docs/troubleshooting/README.md +++ b/docs/troubleshooting/README.md @@ -72,3 +72,19 @@ If they are then you are using the syntax prior to [LunarVim#1813](https://githu -- this is the correct syntax since 3dd60bd vim.list_extend(lvim.lsp.override, { "jsonls" }) ``` + +## Running LunarVim on M1 mac reports error `mach-o, but wrong architecture` + +On start up, lunarvim reports errors such as below with several plugins. + +``` bash +no suitable image found. Did find: + $HOME/.local/share/nvim/site/pack/packer/start/nvim-treesitter/parser/kotlin.so: mach-o, but wrong architecture + $HOME/.local/share/nvim/site/pack/packer/start/nvim-treesitter/parser/kotlin.so: mach-o, but wrong architecture +``` + +Lunarvim does not support M1 mac natively. This can be fixed by installing +homebrew and neovim through the x86_64 architecture platfomr location +`/usr/local`. Doing so will run neovim and homebrew through the x86_64 +architecture. This only works provided you have Rosetta installed. +