環境
Raspberry pi 5へのインストール
curlでコンパイル済みのバイナリを取得
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux-arm64.tar.gz
tar xvf nvim-linux-arm64.tar.gz
sudo mv ./nvim-linux-arm64 /opt/
sudo ln -s /opt/nvim-linux-arm64/bin/nvim /usr/local/bin/nvim
which nvim
プラグインの導入
git clone https://github.com/LazyVim/starter ~/.config/nvim
rm -rf ~/.config/nvim/.git
sudo apt update
sudo apt install clangd
.config/nvim/lua/plugins/colorscheme.lua
return {
{
"rebelot/kanagawa.nvim",
lazy = false,
priority = 1000,
opts = {
theme = "wave"
},
config = function(_, opts)
require("kanagawa").setup(opts)
vim.cmd.colorscheme("kanagawa")
end,
},
}
.config/nvim/lua/plugins/lsp.lua
return {
{
"neovim/nvim-lspconfig",
opts = {
servers = {
clangd = {
cmd = {
"clangd",
"--background-index",
"--clang-tidy",
"--completion-style=detailed",
"--header-insertion=iwyu",
"--suggest-missing-includes",
},
},
},
},
},
}