2023-02-07 13:03:21 +01:00
|
|
|
inputs: let
|
2023-02-10 18:39:31 +01:00
|
|
|
modulesWithInputs = import ./modules inputs;
|
2023-02-07 13:03:21 +01:00
|
|
|
|
|
|
|
neovimConfiguration = {
|
|
|
|
modules ? [],
|
|
|
|
pkgs,
|
|
|
|
lib ? pkgs.lib,
|
|
|
|
check ? true,
|
|
|
|
extraSpecialArgs ? {},
|
2024-04-20 22:42:48 +02:00
|
|
|
extraModules ? [],
|
|
|
|
...
|
2023-02-07 13:03:21 +01:00
|
|
|
}:
|
|
|
|
modulesWithInputs {
|
2024-04-20 22:42:48 +02:00
|
|
|
inherit pkgs lib check extraSpecialArgs extraModules;
|
2023-02-10 18:39:31 +01:00
|
|
|
configuration.imports = modules;
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
mainConfig = isMaximal: {
|
2024-04-14 14:04:47 +02:00
|
|
|
config.vim = {
|
|
|
|
viAlias = true;
|
|
|
|
vimAlias = true;
|
|
|
|
debugMode = {
|
|
|
|
enable = false;
|
2024-04-20 17:07:35 +02:00
|
|
|
level = 16;
|
2024-04-14 14:04:47 +02:00
|
|
|
logFile = "/tmp/nvim.log";
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
|
|
|
|
2024-04-20 18:01:33 +02:00
|
|
|
spellcheck = {
|
2024-04-20 17:07:35 +02:00
|
|
|
enable = isMaximal;
|
|
|
|
};
|
2024-04-14 13:41:10 +02:00
|
|
|
|
2024-04-14 14:04:47 +02:00
|
|
|
lsp = {
|
2023-04-18 00:48:44 +02:00
|
|
|
formatOnSave = true;
|
|
|
|
lspkind.enable = false;
|
|
|
|
lightbulb.enable = true;
|
|
|
|
lspsaga.enable = false;
|
2023-07-30 18:55:16 +02:00
|
|
|
nvimCodeActionMenu.enable = isMaximal;
|
2023-04-18 00:48:44 +02:00
|
|
|
trouble.enable = true;
|
|
|
|
lspSignature.enable = true;
|
2023-07-30 18:55:16 +02:00
|
|
|
lsplines.enable = isMaximal;
|
2023-10-26 14:03:58 +02:00
|
|
|
nvim-docs-view.enable = isMaximal;
|
2023-04-18 00:48:44 +02:00
|
|
|
};
|
|
|
|
|
2024-04-14 14:04:47 +02:00
|
|
|
debugger = {
|
2023-05-04 17:41:11 +02:00
|
|
|
nvim-dap = {
|
|
|
|
enable = true;
|
|
|
|
ui.enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-04-14 14:04:47 +02:00
|
|
|
languages = {
|
2023-04-17 22:27:27 +02:00
|
|
|
enableLSP = true;
|
|
|
|
enableFormat = true;
|
|
|
|
enableTreesitter = true;
|
|
|
|
enableExtraDiagnostics = true;
|
|
|
|
|
2024-05-07 14:40:08 +02:00
|
|
|
# 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;
|
|
|
|
|
2023-04-17 22:27:27 +02:00
|
|
|
nix.enable = true;
|
2024-05-06 21:22:43 +02:00
|
|
|
|
2024-05-07 14:40:08 +02:00
|
|
|
markdown.enable = isMaximal;
|
2023-04-18 00:05:18 +02:00
|
|
|
html.enable = isMaximal;
|
2024-01-24 18:39:07 +01:00
|
|
|
css.enable = isMaximal;
|
2023-04-17 22:27:27 +02:00
|
|
|
sql.enable = isMaximal;
|
2023-08-09 06:41:48 +02:00
|
|
|
java.enable = isMaximal;
|
2023-04-17 22:27:27 +02:00
|
|
|
ts.enable = isMaximal;
|
2023-06-03 16:18:26 +02:00
|
|
|
svelte.enable = isMaximal;
|
2023-04-17 22:27:27 +02:00
|
|
|
go.enable = isMaximal;
|
2024-05-06 23:52:33 +02:00
|
|
|
elixir.enable = isMaximal;
|
2023-04-17 22:27:27 +02:00
|
|
|
zig.enable = isMaximal;
|
2024-05-16 14:36:01 +02:00
|
|
|
ocaml.enable = isMaximal;
|
2023-04-17 22:27:27 +02:00
|
|
|
python.enable = isMaximal;
|
2023-04-18 02:18:02 +02:00
|
|
|
dart.enable = isMaximal;
|
2023-10-23 02:49:27 +02:00
|
|
|
bash.enable = isMaximal;
|
2024-01-24 18:39:07 +01:00
|
|
|
tailwind.enable = isMaximal;
|
2024-04-28 21:07:41 +02:00
|
|
|
typst.enable = isMaximal;
|
2024-01-24 18:39:07 +01:00
|
|
|
clang = {
|
|
|
|
enable = isMaximal;
|
|
|
|
lsp.server = "clangd";
|
|
|
|
};
|
|
|
|
|
|
|
|
rust = {
|
|
|
|
enable = isMaximal;
|
2024-05-07 14:40:08 +02:00
|
|
|
crates.enable = isMaximal;
|
2024-01-24 18:39:07 +01:00
|
|
|
};
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
|
|
|
|
2024-04-14 14:04:47 +02:00
|
|
|
visuals = {
|
2023-02-07 13:03:21 +01:00
|
|
|
enable = true;
|
|
|
|
nvimWebDevicons.enable = true;
|
2024-05-07 14:40:08 +02:00
|
|
|
scrollBar.enable = isMaximal;
|
2023-02-07 13:03:21 +01:00
|
|
|
smoothScroll.enable = true;
|
2023-10-22 00:22:31 +02:00
|
|
|
cellularAutomaton.enable = false;
|
2023-02-28 11:00:38 +01:00
|
|
|
fidget-nvim.enable = true;
|
2023-10-22 00:22:31 +02:00
|
|
|
highlight-undo.enable = true;
|
|
|
|
|
2023-02-07 13:03:21 +01:00
|
|
|
indentBlankline = {
|
|
|
|
enable = true;
|
2023-04-18 01:17:36 +02:00
|
|
|
fillChar = null;
|
|
|
|
eolChar = null;
|
2023-10-14 13:04:48 +02:00
|
|
|
scope = {
|
2023-11-24 10:05:19 +01:00
|
|
|
enabled = true;
|
2023-10-14 13:04:48 +02:00
|
|
|
};
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
2023-10-22 00:22:31 +02:00
|
|
|
|
2023-08-07 04:30:06 +02:00
|
|
|
cursorline = {
|
2023-02-07 13:03:21 +01:00
|
|
|
enable = true;
|
|
|
|
lineTimeout = 0;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-04-14 14:04:47 +02:00
|
|
|
statusline = {
|
2023-03-01 09:34:23 +01:00
|
|
|
lualine = {
|
2023-03-01 10:45:42 +01:00
|
|
|
enable = true;
|
2023-03-01 09:34:23 +01:00
|
|
|
theme = "catppuccin";
|
|
|
|
};
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
|
|
|
|
2024-04-14 14:04:47 +02:00
|
|
|
theme = {
|
2023-02-07 13:03:21 +01:00
|
|
|
enable = true;
|
|
|
|
name = "catppuccin";
|
|
|
|
style = "mocha";
|
2023-04-18 23:54:44 +02:00
|
|
|
transparent = false;
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
|
|
|
|
2024-04-14 14:04:47 +02:00
|
|
|
autopairs.enable = true;
|
|
|
|
|
|
|
|
autocomplete = {
|
2023-04-18 01:34:41 +02:00
|
|
|
enable = true;
|
2023-02-07 13:03:21 +01:00
|
|
|
type = "nvim-cmp";
|
|
|
|
};
|
|
|
|
|
2024-04-14 14:04:47 +02:00
|
|
|
filetree = {
|
2023-07-30 10:41:52 +02:00
|
|
|
nvimTree = {
|
2023-02-07 13:03:21 +01:00
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-04-14 14:04:47 +02:00
|
|
|
tabline = {
|
2023-02-07 13:03:21 +01:00
|
|
|
nvimBufferline.enable = true;
|
|
|
|
};
|
|
|
|
|
2024-04-14 14:04:47 +02:00
|
|
|
treesitter.context.enable = true;
|
2023-02-07 13:03:21 +01:00
|
|
|
|
2024-04-14 14:04:47 +02:00
|
|
|
binds = {
|
2023-02-07 13:03:21 +01:00
|
|
|
whichKey.enable = true;
|
|
|
|
cheatsheet.enable = true;
|
|
|
|
};
|
|
|
|
|
2024-04-14 14:04:47 +02:00
|
|
|
telescope.enable = true;
|
2023-02-07 13:03:21 +01:00
|
|
|
|
2024-04-14 14:04:47 +02:00
|
|
|
git = {
|
2023-02-07 13:03:21 +01:00
|
|
|
enable = true;
|
|
|
|
gitsigns.enable = true;
|
2024-04-14 17:33:16 +02:00
|
|
|
gitsigns.codeActions.enable = false; # throws an annoying debug message
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
|
|
|
|
2024-04-14 14:04:47 +02:00
|
|
|
minimap = {
|
2023-02-07 13:03:21 +01:00
|
|
|
minimap-vim.enable = false;
|
2023-06-06 01:23:29 +02:00
|
|
|
codewindow.enable = isMaximal; # lighter, faster, and uses lua for configuration
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
|
|
|
|
2024-04-14 14:04:47 +02:00
|
|
|
dashboard = {
|
2023-02-07 13:03:21 +01:00
|
|
|
dashboard-nvim.enable = false;
|
2023-06-06 01:23:29 +02:00
|
|
|
alpha.enable = isMaximal;
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
|
|
|
|
2024-04-14 14:04:47 +02:00
|
|
|
notify = {
|
2023-02-07 13:03:21 +01:00
|
|
|
nvim-notify.enable = true;
|
|
|
|
};
|
|
|
|
|
2024-04-14 14:04:47 +02:00
|
|
|
projects = {
|
2023-07-28 15:58:30 +02:00
|
|
|
project-nvim.enable = isMaximal;
|
2023-04-07 19:36:27 +02:00
|
|
|
};
|
|
|
|
|
2024-04-14 14:04:47 +02:00
|
|
|
utility = {
|
2023-06-06 01:23:29 +02:00
|
|
|
ccc.enable = isMaximal;
|
2024-04-29 04:33:00 +02:00
|
|
|
vim-wakatime.enable = false;
|
2023-06-06 01:23:29 +02:00
|
|
|
icon-picker.enable = isMaximal;
|
2023-06-07 13:28:27 +02:00
|
|
|
surround.enable = isMaximal;
|
2023-03-01 10:08:24 +01:00
|
|
|
diffview-nvim.enable = true;
|
2023-04-05 01:14:13 +02:00
|
|
|
motion = {
|
|
|
|
hop.enable = true;
|
|
|
|
leap.enable = true;
|
|
|
|
};
|
2024-02-17 01:19:38 +01:00
|
|
|
|
|
|
|
images = {
|
2024-02-26 13:31:30 +01:00
|
|
|
image-nvim.enable = false;
|
2024-02-17 01:19:38 +01:00
|
|
|
};
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
|
|
|
|
2024-04-14 14:04:47 +02:00
|
|
|
notes = {
|
2024-02-17 01:19:38 +01:00
|
|
|
obsidian.enable = false; # FIXME: neovim fails to build if obsidian is enabled
|
2023-02-16 21:57:56 +01:00
|
|
|
orgmode.enable = false;
|
2023-07-28 15:58:30 +02:00
|
|
|
mind-nvim.enable = isMaximal;
|
2023-03-01 11:26:25 +01:00
|
|
|
todo-comments.enable = true;
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
|
|
|
|
2024-04-14 14:04:47 +02:00
|
|
|
terminal = {
|
2023-04-28 07:59:35 +02:00
|
|
|
toggleterm = {
|
|
|
|
enable = true;
|
|
|
|
lazygit.enable = true;
|
2023-04-28 12:39:29 +02:00
|
|
|
};
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
|
|
|
|
2024-04-14 14:04:47 +02:00
|
|
|
ui = {
|
2023-07-25 21:16:20 +02:00
|
|
|
borders.enable = true;
|
2023-02-07 13:03:21 +01:00
|
|
|
noice.enable = true;
|
2023-06-05 22:10:07 +02:00
|
|
|
colorizer.enable = true;
|
2023-06-07 13:28:27 +02:00
|
|
|
modes-nvim.enable = false; # the theme looks terrible with catppuccin
|
2023-06-06 02:05:05 +02:00
|
|
|
illuminate.enable = true;
|
2023-07-28 15:58:30 +02:00
|
|
|
breadcrumbs = {
|
|
|
|
enable = isMaximal;
|
|
|
|
navbuddy.enable = isMaximal;
|
|
|
|
};
|
2023-06-04 13:12:08 +02:00
|
|
|
smartcolumn = {
|
|
|
|
enable = true;
|
2024-03-10 22:00:14 +01:00
|
|
|
setupOpts.custom_colorcolumn = {
|
2023-06-04 13:12:08 +02:00
|
|
|
# this is a freeform module, it's `buftype = int;` for configuring column position
|
|
|
|
nix = 110;
|
|
|
|
ruby = 120;
|
|
|
|
java = 130;
|
2023-06-04 16:36:01 +02:00
|
|
|
go = [90 130];
|
2023-06-04 13:12:08 +02:00
|
|
|
};
|
|
|
|
};
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
|
|
|
|
2024-04-14 14:04:47 +02:00
|
|
|
assistant = {
|
2024-04-23 11:28:19 +02:00
|
|
|
chatgpt.enable = false;
|
2023-07-24 15:51:24 +02:00
|
|
|
copilot = {
|
2024-04-23 11:28:19 +02:00
|
|
|
enable = false;
|
2023-07-24 15:51:24 +02:00
|
|
|
cmp.enable = isMaximal;
|
|
|
|
};
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
|
|
|
|
2024-04-14 14:04:47 +02:00
|
|
|
session = {
|
2023-07-30 11:11:47 +02:00
|
|
|
nvim-session-manager.enable = false;
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
|
|
|
|
2024-04-14 14:04:47 +02:00
|
|
|
gestures = {
|
2023-02-07 13:03:21 +01:00
|
|
|
gesture-nvim.enable = false;
|
|
|
|
};
|
2023-02-16 21:32:46 +01:00
|
|
|
|
2024-04-14 14:04:47 +02:00
|
|
|
comments = {
|
2023-02-16 21:32:46 +01:00
|
|
|
comment-nvim.enable = true;
|
2023-02-18 13:32:43 +01:00
|
|
|
};
|
|
|
|
|
2024-04-14 14:04:47 +02:00
|
|
|
presence = {
|
2024-04-27 17:00:30 +02:00
|
|
|
neocord.enable = false;
|
2023-02-16 21:32:46 +01:00
|
|
|
};
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
in {
|
2024-05-06 21:30:06 +02:00
|
|
|
inherit neovimConfiguration mainConfig;
|
2023-02-07 13:03:21 +01:00
|
|
|
}
|