2024-12-09 11:31:59 +01:00
|
|
|
# This is the sample configuration for nvf, aiming to give you a feel of the default options
|
|
|
|
# while certain plugins are enabled. While it may act as one, this is not an overview of nvf's
|
|
|
|
# module options. To find a complete overview of nvf's options and examples, visit the manual.
|
|
|
|
# https://notashelf.github.io/nvf/options.html
|
2024-07-12 00:49:44 +02:00
|
|
|
isMaximal: {
|
|
|
|
config.vim = {
|
|
|
|
viAlias = true;
|
|
|
|
vimAlias = true;
|
|
|
|
debugMode = {
|
|
|
|
enable = false;
|
|
|
|
level = 16;
|
|
|
|
logFile = "/tmp/nvim.log";
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
|
|
|
|
2024-07-12 00:49:44 +02:00
|
|
|
spellcheck = {
|
|
|
|
enable = isMaximal;
|
|
|
|
};
|
2023-02-07 13:03:21 +01:00
|
|
|
|
2024-07-12 00:49:44 +02:00
|
|
|
lsp = {
|
|
|
|
formatOnSave = true;
|
|
|
|
lspkind.enable = false;
|
|
|
|
lightbulb.enable = true;
|
|
|
|
lspsaga.enable = false;
|
|
|
|
trouble.enable = true;
|
|
|
|
lspSignature.enable = true;
|
2024-09-28 22:21:27 +02:00
|
|
|
otter-nvim.enable = isMaximal;
|
2024-07-12 00:49:44 +02:00
|
|
|
lsplines.enable = isMaximal;
|
|
|
|
nvim-docs-view.enable = isMaximal;
|
|
|
|
};
|
2024-04-14 13:41:10 +02:00
|
|
|
|
2024-07-12 00:49:44 +02:00
|
|
|
debugger = {
|
|
|
|
nvim-dap = {
|
|
|
|
enable = true;
|
|
|
|
ui.enable = true;
|
2023-04-18 00:48:44 +02:00
|
|
|
};
|
2024-07-12 00:49:44 +02:00
|
|
|
};
|
2023-04-18 00:48:44 +02:00
|
|
|
|
2024-12-09 11:31:59 +01:00
|
|
|
# This section does not include a comprehensive list of available language modules.
|
|
|
|
# To list all available language module options, please visit the nvf manual.
|
2024-07-12 00:49:44 +02:00
|
|
|
languages = {
|
|
|
|
enableLSP = true;
|
|
|
|
enableFormat = true;
|
|
|
|
enableTreesitter = true;
|
|
|
|
enableExtraDiagnostics = true;
|
|
|
|
|
2024-12-09 11:31:59 +01:00
|
|
|
# Languages that will be supported in default and maximal configurations.
|
2024-07-12 00:49:44 +02:00
|
|
|
nix.enable = true;
|
2024-12-09 11:31:59 +01:00
|
|
|
markdown.enable = true;
|
2024-07-12 00:49:44 +02:00
|
|
|
|
2024-12-09 11:31:59 +01:00
|
|
|
# Languages that are enabled in the maximal configuration.
|
|
|
|
bash.enable = isMaximal;
|
|
|
|
clang.enable = isMaximal;
|
2024-07-12 00:49:44 +02:00
|
|
|
css.enable = isMaximal;
|
2024-12-09 11:31:59 +01:00
|
|
|
html.enable = isMaximal;
|
2024-07-12 00:49:44 +02:00
|
|
|
sql.enable = isMaximal;
|
|
|
|
java.enable = isMaximal;
|
2024-10-10 20:14:52 +02:00
|
|
|
kotlin.enable = isMaximal;
|
2024-07-12 00:49:44 +02:00
|
|
|
ts.enable = isMaximal;
|
|
|
|
go.enable = isMaximal;
|
2024-10-08 11:16:19 +02:00
|
|
|
lua.enable = isMaximal;
|
2024-07-12 00:49:44 +02:00
|
|
|
zig.enable = isMaximal;
|
|
|
|
python.enable = isMaximal;
|
|
|
|
typst.enable = isMaximal;
|
|
|
|
rust = {
|
|
|
|
enable = isMaximal;
|
|
|
|
crates.enable = isMaximal;
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
2024-12-09 11:31:59 +01:00
|
|
|
|
|
|
|
# Language modules that are not as common.
|
|
|
|
assembly.enable = false;
|
|
|
|
astro.enable = false;
|
2024-11-28 18:12:19 +01:00
|
|
|
nu.enable = false;
|
2024-12-09 11:31:59 +01:00
|
|
|
csharp.enable = false;
|
|
|
|
julia.enable = false;
|
|
|
|
vala.enable = false;
|
|
|
|
scala.enable = false;
|
|
|
|
r.enable = false;
|
|
|
|
gleam.enable = false;
|
|
|
|
dart.enable = false;
|
|
|
|
ocaml.enable = false;
|
|
|
|
elixir.enable = false;
|
2024-12-20 04:50:38 +01:00
|
|
|
haskell.enable = false;
|
2024-12-09 11:31:59 +01:00
|
|
|
|
|
|
|
tailwind.enable = false;
|
|
|
|
svelte.enable = false;
|
|
|
|
|
|
|
|
# Nim LSP is broken on Darwin and therefore
|
|
|
|
# should be disabled by default. Users may still enable
|
|
|
|
# `vim.languages.vim` to enable it, this does not restrict
|
|
|
|
# that.
|
|
|
|
# See: <https://github.com/PMunch/nimlsp/issues/178#issue-2128106096>
|
|
|
|
nim.enable = false;
|
2024-07-12 00:49:44 +02:00
|
|
|
};
|
2023-02-07 13:03:21 +01:00
|
|
|
|
2024-07-12 00:49:44 +02:00
|
|
|
visuals = {
|
2024-11-08 10:56:21 +01:00
|
|
|
nvim-scrollbar.enable = isMaximal;
|
|
|
|
nvim-web-devicons.enable = true;
|
|
|
|
nvim-cursorline.enable = true;
|
|
|
|
cinnamon-nvim.enable = true;
|
2024-07-12 00:49:44 +02:00
|
|
|
fidget-nvim.enable = true;
|
2023-10-22 00:22:31 +02:00
|
|
|
|
2024-11-08 10:56:21 +01:00
|
|
|
highlight-undo.enable = true;
|
|
|
|
indent-blankline.enable = true;
|
2023-02-07 13:03:21 +01:00
|
|
|
|
2024-11-08 10:56:21 +01:00
|
|
|
# Fun
|
|
|
|
cellular-automaton.enable = false;
|
2024-07-12 00:49:44 +02:00
|
|
|
};
|
2023-02-07 13:03:21 +01:00
|
|
|
|
2024-07-12 00:49:44 +02:00
|
|
|
statusline = {
|
|
|
|
lualine = {
|
2023-02-07 13:03:21 +01:00
|
|
|
enable = true;
|
2024-07-12 00:49:44 +02:00
|
|
|
theme = "catppuccin";
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
2024-07-12 00:49:44 +02:00
|
|
|
};
|
2023-02-07 13:03:21 +01:00
|
|
|
|
2024-07-12 00:49:44 +02:00
|
|
|
theme = {
|
|
|
|
enable = true;
|
|
|
|
name = "catppuccin";
|
|
|
|
style = "mocha";
|
|
|
|
transparent = false;
|
|
|
|
};
|
2024-04-14 14:04:47 +02:00
|
|
|
|
2024-10-09 19:50:34 +02:00
|
|
|
autopairs.nvim-autopairs.enable = true;
|
2023-02-07 13:03:21 +01:00
|
|
|
|
2024-10-09 19:50:34 +02:00
|
|
|
autocomplete.nvim-cmp.enable = true;
|
|
|
|
snippets.luasnip.enable = true;
|
2023-02-07 13:03:21 +01:00
|
|
|
|
2024-07-12 00:49:44 +02:00
|
|
|
filetree = {
|
2024-11-21 22:49:11 +01:00
|
|
|
neo-tree = {
|
2024-07-12 00:49:44 +02:00
|
|
|
enable = true;
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
2024-07-12 00:49:44 +02:00
|
|
|
};
|
2023-02-07 13:03:21 +01:00
|
|
|
|
2024-07-12 00:49:44 +02:00
|
|
|
tabline = {
|
|
|
|
nvimBufferline.enable = true;
|
|
|
|
};
|
2023-02-07 13:03:21 +01:00
|
|
|
|
2024-07-12 00:49:44 +02:00
|
|
|
treesitter.context.enable = true;
|
2023-02-07 13:03:21 +01:00
|
|
|
|
2024-07-12 00:49:44 +02:00
|
|
|
binds = {
|
|
|
|
whichKey.enable = true;
|
|
|
|
cheatsheet.enable = true;
|
|
|
|
};
|
2023-02-07 13:03:21 +01:00
|
|
|
|
2024-07-12 00:49:44 +02:00
|
|
|
telescope.enable = true;
|
2023-02-07 13:03:21 +01:00
|
|
|
|
2024-07-12 00:49:44 +02:00
|
|
|
git = {
|
|
|
|
enable = true;
|
|
|
|
gitsigns.enable = true;
|
|
|
|
gitsigns.codeActions.enable = false; # throws an annoying debug message
|
|
|
|
};
|
2023-02-07 13:03:21 +01:00
|
|
|
|
2024-07-12 00:49:44 +02:00
|
|
|
minimap = {
|
|
|
|
minimap-vim.enable = false;
|
|
|
|
codewindow.enable = isMaximal; # lighter, faster, and uses lua for configuration
|
|
|
|
};
|
2023-02-07 13:03:21 +01:00
|
|
|
|
2024-07-12 00:49:44 +02:00
|
|
|
dashboard = {
|
|
|
|
dashboard-nvim.enable = false;
|
|
|
|
alpha.enable = isMaximal;
|
|
|
|
};
|
2023-02-07 13:03:21 +01:00
|
|
|
|
2024-07-12 00:49:44 +02:00
|
|
|
notify = {
|
|
|
|
nvim-notify.enable = true;
|
|
|
|
};
|
2023-04-07 19:36:27 +02:00
|
|
|
|
2024-07-12 00:49:44 +02:00
|
|
|
projects = {
|
|
|
|
project-nvim.enable = isMaximal;
|
|
|
|
};
|
2024-02-17 01:19:38 +01:00
|
|
|
|
2024-07-12 00:49:44 +02:00
|
|
|
utility = {
|
2024-09-28 22:21:27 +02:00
|
|
|
ccc.enable = false;
|
2024-07-12 00:49:44 +02:00
|
|
|
vim-wakatime.enable = false;
|
|
|
|
icon-picker.enable = isMaximal;
|
|
|
|
surround.enable = isMaximal;
|
|
|
|
diffview-nvim.enable = true;
|
|
|
|
motion = {
|
|
|
|
hop.enable = true;
|
|
|
|
leap.enable = true;
|
2024-11-08 10:32:02 +01:00
|
|
|
precognition.enable = isMaximal;
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
|
|
|
|
2024-07-12 00:49:44 +02:00
|
|
|
images = {
|
|
|
|
image-nvim.enable = false;
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
2024-07-12 00:49:44 +02:00
|
|
|
};
|
2023-02-07 13:03:21 +01:00
|
|
|
|
2024-07-12 00:49:44 +02:00
|
|
|
notes = {
|
|
|
|
obsidian.enable = false; # FIXME: neovim fails to build if obsidian is enabled
|
2024-10-15 17:31:18 +02:00
|
|
|
neorg.enable = false;
|
2024-07-12 00:49:44 +02:00
|
|
|
orgmode.enable = false;
|
|
|
|
mind-nvim.enable = isMaximal;
|
|
|
|
todo-comments.enable = true;
|
|
|
|
};
|
2023-02-07 13:03:21 +01:00
|
|
|
|
2024-07-12 00:49:44 +02:00
|
|
|
terminal = {
|
|
|
|
toggleterm = {
|
|
|
|
enable = true;
|
|
|
|
lazygit.enable = true;
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
2024-07-12 00:49:44 +02:00
|
|
|
};
|
2023-02-07 13:03:21 +01:00
|
|
|
|
2024-07-12 00:49:44 +02:00
|
|
|
ui = {
|
|
|
|
borders.enable = true;
|
|
|
|
noice.enable = true;
|
|
|
|
colorizer.enable = true;
|
|
|
|
modes-nvim.enable = false; # the theme looks terrible with catppuccin
|
|
|
|
illuminate.enable = true;
|
|
|
|
breadcrumbs = {
|
|
|
|
enable = isMaximal;
|
|
|
|
navbuddy.enable = isMaximal;
|
|
|
|
};
|
|
|
|
smartcolumn = {
|
|
|
|
enable = true;
|
|
|
|
setupOpts.custom_colorcolumn = {
|
|
|
|
# this is a freeform module, it's `buftype = int;` for configuring column position
|
|
|
|
nix = "110";
|
|
|
|
ruby = "120";
|
|
|
|
java = "130";
|
|
|
|
go = ["90" "130"];
|
2023-07-24 15:51:24 +02:00
|
|
|
};
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
2024-09-20 17:51:11 +02:00
|
|
|
fastaction.enable = true;
|
2024-07-12 00:49:44 +02:00
|
|
|
};
|
2023-02-07 13:03:21 +01:00
|
|
|
|
2024-07-12 00:49:44 +02:00
|
|
|
assistant = {
|
|
|
|
chatgpt.enable = false;
|
|
|
|
copilot = {
|
|
|
|
enable = false;
|
|
|
|
cmp.enable = isMaximal;
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
2024-07-12 00:49:44 +02:00
|
|
|
};
|
2023-02-07 13:03:21 +01:00
|
|
|
|
2024-07-12 00:49:44 +02:00
|
|
|
session = {
|
|
|
|
nvim-session-manager.enable = false;
|
|
|
|
};
|
2023-02-16 21:32:46 +01:00
|
|
|
|
2024-07-12 00:49:44 +02:00
|
|
|
gestures = {
|
|
|
|
gesture-nvim.enable = false;
|
|
|
|
};
|
2023-02-18 13:32:43 +01:00
|
|
|
|
2024-07-12 00:49:44 +02:00
|
|
|
comments = {
|
|
|
|
comment-nvim.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
presence = {
|
|
|
|
neocord.enable = false;
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|