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