Feature | Description |
---|---|
Language support | Lua, Javascript, Typescript, JSX, TSX, C, Zig, JSON, CSS/SCSS/LESS |
Code diagnostics | ✅ |
Code actions | ✅ |
Code formatting | ✅ |
Common sense keybindings | Mostly defaults from various plugins |
Color scheme | Rose pine |
File | Description |
---|---|
init.lua |
A "barrel" file that loads all the sub modules |
plugins.lua |
Manages plugins with Vim-plug |
static-analysis.lua |
Manages language servers, code actions, syntax highlighting |
formatting.lua |
Manages code formatting |
telescope-config.lua |
Manages the configuration of telescope and telescope-file-browser plugins |
color-scheme |
Manages the color scheme |
- git 1.9.2 or above (for tagged releases in
vim-plug
) - Neovim 0.9.x
Copy these configuration files into your <Neovim configuration directory>/lua/filibit/
OS | Neovim configuration directory |
---|---|
Unix | ~/.config/nvim/ |
Windows | ~/AppData/Local/nvim/ |
Neovim looks for the initial configuration file in the following order
<Neovim configuration directory>/init.vim
<Neovim configuration directory>/init.lua
This configuration is written in Lua language. If init.vim
file exists, remove it, or rename it.
Create a file, if missing: <Neovim configuration directory>/init.lua
with the following content:
require("lua/filibit")
This directory structure allows easy switching between different user configurations.
If you want to create your own configuration, just create a new directory and load that directory instead of filibit
.
This configuration uses Vim Plug as a plugin manager. Installation instructions are here
There are also other plugin managers for Neovim.
To use a different plugin manager, these configuration files will need to be updated
- Start Neovim
neovim
- Install plugins
:PlugInstall
- Reopen Neovim:
:q
, thenneovim
- Install language servers and formatters
:MasonInstall
- Reopen Neovim inside some project to verify the configuration:
:q
, thenneovim <path-to-some-project>
-
<leader>
is set to space (" "
) -
Default keybindings by LSP Zero plugin: here
-
Code completion ("insert" mode only):
Keybinding Action <C-space>
toggle completion menu <C-n>
select next item in completion menu (open completion menu, if not open) <C-p>
select prev item in completion menu (open completion menu, if not open) <CR>
confirm selection <C-e>
close completion menu -
File browse, file search, term search
Keybinding Action <leader>t
Open Telescope file browser <leader>ff
Find files from within the current working directory that is a git repository <leader>faf
Find files from withing the current working directory <leader>st
Search the term from within the current working directory <leader>sst
Search the term under the cursor / selection from within the current working directory -
Useful plugin commands:
:PlugStatus
:Mason
:NullLsInfo