4.4 KiB
kickstart.nvim-FreeBSD
Introduction
A FreeBSD-optimized fork of kickstart.nvim that is:
- Small
- Single-file
- Completely Documented
- FreeBSD-Native: Configured to use system packages instead of Mason auto-install
NOT a Neovim distribution, but instead a starting point for your configuration tailored for FreeBSD.
What's Different from Original Kickstart
This fork includes FreeBSD-specific modifications:
- No Mason auto-compilation: Uses system
pkgpackages instead - Tree-sitter support: Configured to use system tree-sitter libraries
- Tested on FreeBSD: All plugins verified to work on FreeBSD systems
- Pre-install script: Automated dependency installation via
install-freebsd.sh
Installation
Install Neovim
Kickstart.nvim targets only the latest 'stable' and latest 'nightly' of Neovim. If you are experiencing issues, please make sure you have the latest versions.
Install External Dependencies
FreeBSD (Recommended for FreeBSD users)
Use the provided installation script to automatically install all dependencies:
sudo sh install-freebsd.sh
Or manually install dependencies:
sudo pkg update -f
sudo pkg install -y git gmake unzip llvm ripgrep fd-find tree-sitter stylua base64-by-elvis
Note: lua-language-server is not available in FreeBSD pkg repositories, so LSP support for Lua is disabled in this config.
Other External Requirements
- Basic utils:
git,gmake(FreeBSD uses gmake instead of make),unzip, C Compiler (clang viallvm) - ripgrep, fd-find
- Clipboard tool (xclip/xsel or xclip-freebsd)
- A Nerd Font: optional, provides various icons
- if you have it set
vim.g.have_nerd_fontininit.luato true
- if you have it set
- Language Setup:
- If you want to write Typescript, you need
npm - If you want to write Golang, you will need
go - etc.
- If you want to write Typescript, you need
Install Kickstart.nvim-FreeBSD
[!NOTE] Backup your previous configuration (if any exists)
Neovim's configuration location on FreeBSD:
~/.config/nvim
Clone the Repository
git clone https://github.com/YOUR_USERNAME/kickstart.nvim-freebsd.git "${XDG_CONFIG_HOME:-$HOME/.config}"/nvim
cd ~/.config/nvim
Install Dependencies
Run the automated install script:
sudo sh install-freebsd.sh
Start Neovim and Sync Plugins
nvim
Inside Neovim, run:
:Lazy sync
Wait for plugins to finish installing, then restart Neovim.
Getting Started
Read through the init.lua file in your configuration folder for more information about extending and exploring Neovim.
FAQ
- What should I do if I already have a pre-existing Neovim configuration?
- You should back it up and then delete all associated files.
- This includes your existing init.lua and the Neovim files in
~/.localwhich can be deleted withrm -rf ~/.local/share/nvim/
- Can I keep my existing configuration in parallel to kickstart?
- Yes! You can use NVIM_APPNAME
=nvim-NAMEto maintain multiple configurations. For example, you can install the kickstart configuration in~/.config/nvim-freebsdand create an alias:
When you run Neovim usingalias nvim-freebsd='NVIM_APPNAME="nvim-freebsd" nvim'nvim-freebsdalias it will use the alternative config directory and the matching local directory~/.local/share/nvim-freebsd. You can apply this approach to any Neovim distribution that you would like to try out.
- Yes! You can use NVIM_APPNAME
- What if I want to "uninstall" this configuration:
- See lazy.nvim uninstall information
- Why is the kickstart
init.luaa single file? Wouldn't it make sense to split it into multiple files?- The main purpose of kickstart is to serve as a teaching tool and a reference
configuration that someone can easily use to
git cloneas a basis for their own. As you progress in learning Neovim and Lua, you might consider splittinginit.luainto smaller parts. A fork of kickstart that does this while maintaining the same functionality is available here:
- The main purpose of kickstart is to serve as a teaching tool and a reference
configuration that someone can easily use to