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 ? {},
|
|
|
|
}:
|
|
|
|
modulesWithInputs {
|
|
|
|
inherit pkgs lib check extraSpecialArgs;
|
2023-02-10 18:39:31 +01:00
|
|
|
configuration.imports = modules;
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
|
|
|
|
2023-04-17 23:38:57 +02:00
|
|
|
tidalConfig = {
|
|
|
|
config.vim.languages.tidal.enable = true;
|
|
|
|
};
|
|
|
|
|
2023-02-07 13:03:21 +01:00
|
|
|
mainConfig = isMaximal: {
|
|
|
|
config = {
|
|
|
|
vim = {
|
|
|
|
viAlias = true;
|
|
|
|
vimAlias = true;
|
2023-03-01 09:34:23 +01:00
|
|
|
debugMode = {
|
2023-03-01 10:45:42 +01:00
|
|
|
enable = false;
|
2023-03-01 09:34:23 +01:00
|
|
|
level = 20;
|
|
|
|
logFile = "/tmp/nvim.log";
|
|
|
|
};
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
|
|
|
|
2023-04-18 00:48:44 +02:00
|
|
|
vim.lsp = {
|
|
|
|
formatOnSave = true;
|
|
|
|
lspkind.enable = false;
|
|
|
|
lightbulb.enable = true;
|
|
|
|
lspsaga.enable = false;
|
|
|
|
nvimCodeActionMenu.enable = true;
|
|
|
|
trouble.enable = true;
|
|
|
|
lspSignature.enable = true;
|
|
|
|
};
|
|
|
|
|
2023-05-04 17:41:11 +02:00
|
|
|
vim.debugger = {
|
|
|
|
nvim-dap = {
|
|
|
|
enable = true;
|
|
|
|
ui.enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-04-17 22:27:27 +02:00
|
|
|
vim.languages = {
|
|
|
|
enableLSP = true;
|
|
|
|
enableFormat = true;
|
|
|
|
enableTreesitter = true;
|
|
|
|
enableExtraDiagnostics = true;
|
|
|
|
|
|
|
|
nix.enable = true;
|
2023-04-18 00:05:18 +02:00
|
|
|
html.enable = isMaximal;
|
2023-02-07 13:03:21 +01:00
|
|
|
clang.enable = isMaximal;
|
2023-04-17 22:27:27 +02:00
|
|
|
sql.enable = isMaximal;
|
|
|
|
rust = {
|
|
|
|
enable = isMaximal;
|
|
|
|
crates.enable = true;
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
2023-04-17 22:27:27 +02:00
|
|
|
ts.enable = isMaximal;
|
|
|
|
go.enable = isMaximal;
|
|
|
|
zig.enable = isMaximal;
|
|
|
|
python.enable = isMaximal;
|
2023-04-18 02:18:02 +02:00
|
|
|
dart.enable = isMaximal;
|
|
|
|
elixir.enable = isMaximal;
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
vim.visuals = {
|
|
|
|
enable = true;
|
|
|
|
nvimWebDevicons.enable = true;
|
|
|
|
scrollBar.enable = true;
|
|
|
|
smoothScroll.enable = true;
|
|
|
|
cellularAutomaton.enable = true;
|
2023-02-28 11:00:38 +01:00
|
|
|
fidget-nvim.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-02-07 13:03:21 +01:00
|
|
|
showCurrContext = true;
|
|
|
|
};
|
|
|
|
cursorWordline = {
|
|
|
|
enable = true;
|
|
|
|
lineTimeout = 0;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-03-01 09:34:23 +01:00
|
|
|
vim.statusline = {
|
|
|
|
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
|
|
|
};
|
|
|
|
|
|
|
|
vim.theme = {
|
|
|
|
enable = true;
|
|
|
|
name = "catppuccin";
|
|
|
|
style = "mocha";
|
2023-04-18 23:54:44 +02:00
|
|
|
transparent = false;
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
|
|
|
vim.autopairs.enable = true;
|
|
|
|
|
|
|
|
vim.autocomplete = {
|
2023-04-18 01:34:41 +02:00
|
|
|
enable = true;
|
2023-02-07 13:03:21 +01:00
|
|
|
type = "nvim-cmp";
|
|
|
|
};
|
|
|
|
|
|
|
|
vim.filetree = {
|
|
|
|
nvimTreeLua = {
|
|
|
|
enable = true;
|
2023-04-15 10:29:49 +02:00
|
|
|
renderer = {
|
|
|
|
rootFolderLabel = null;
|
|
|
|
};
|
2023-02-07 13:03:21 +01:00
|
|
|
view = {
|
|
|
|
width = 25;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
vim.tabline = {
|
|
|
|
nvimBufferline.enable = true;
|
|
|
|
};
|
|
|
|
|
2023-04-17 22:27:27 +02:00
|
|
|
vim.treesitter.context.enable = true;
|
2023-02-07 13:03:21 +01:00
|
|
|
|
|
|
|
vim.binds = {
|
|
|
|
whichKey.enable = true;
|
|
|
|
cheatsheet.enable = true;
|
|
|
|
};
|
|
|
|
|
2023-04-17 22:27:27 +02:00
|
|
|
vim.telescope.enable = true;
|
2023-02-07 13:03:21 +01:00
|
|
|
|
|
|
|
vim.git = {
|
|
|
|
enable = true;
|
|
|
|
gitsigns.enable = true;
|
2023-04-18 19:13:02 +02:00
|
|
|
gitsigns.codeActions = false; # throws an annoying debug message
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
vim.minimap = {
|
|
|
|
minimap-vim.enable = false;
|
|
|
|
codewindow.enable = true; # lighter, faster, and uses lua for configuration
|
|
|
|
};
|
|
|
|
|
|
|
|
vim.dashboard = {
|
|
|
|
dashboard-nvim.enable = false;
|
|
|
|
alpha.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
vim.notify = {
|
|
|
|
nvim-notify.enable = true;
|
|
|
|
};
|
|
|
|
|
2023-04-07 19:36:27 +02:00
|
|
|
vim.projects = {
|
|
|
|
project-nvim.enable = true;
|
|
|
|
};
|
|
|
|
|
2023-02-07 13:03:21 +01:00
|
|
|
vim.utility = {
|
|
|
|
colorizer.enable = true;
|
|
|
|
icon-picker.enable = true;
|
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;
|
|
|
|
};
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
vim.notes = {
|
|
|
|
obsidian.enable = false; # FIXME neovim fails to build if obsidian is enabled
|
2023-02-16 21:57:56 +01:00
|
|
|
orgmode.enable = false;
|
|
|
|
mind-nvim.enable = true;
|
2023-03-01 11:26:25 +01:00
|
|
|
todo-comments.enable = true;
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
vim.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
|
|
|
};
|
|
|
|
|
|
|
|
vim.ui = {
|
|
|
|
noice.enable = true;
|
2023-04-05 15:59:08 +02:00
|
|
|
smartcolumn.enable = true;
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
vim.assistant = {
|
2023-02-15 09:47:08 +01:00
|
|
|
copilot.enable = isMaximal;
|
|
|
|
#tabnine.enable = false; # FIXME: this is not working because the plugin depends on an internal script to be ran by the package manager
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
vim.session = {
|
2023-04-08 00:44:40 +02:00
|
|
|
nvim-session-manager.enable = true;
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
vim.gestures = {
|
|
|
|
gesture-nvim.enable = false;
|
|
|
|
};
|
2023-02-16 21:32:46 +01:00
|
|
|
|
|
|
|
vim.comments = {
|
|
|
|
comment-nvim.enable = true;
|
2023-02-18 13:32:43 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
vim.presence = {
|
|
|
|
presence-nvim = {
|
|
|
|
enable = true;
|
|
|
|
auto_update = true;
|
2023-03-09 11:28:02 +01:00
|
|
|
image_text = "The Superior Text Editor";
|
2023-02-18 13:32:43 +01:00
|
|
|
client_id = "793271441293967371";
|
|
|
|
main_image = "neovim";
|
2023-05-04 17:41:11 +02:00
|
|
|
show_time = true;
|
2023-02-18 13:32:43 +01:00
|
|
|
rich_presence = {
|
|
|
|
editing_text = "Editing %s";
|
|
|
|
};
|
|
|
|
};
|
2023-02-16 21:32:46 +01:00
|
|
|
};
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
in {
|
2023-04-17 23:38:57 +02:00
|
|
|
inherit neovimConfiguration mainConfig tidalConfig;
|
2023-02-07 13:03:21 +01:00
|
|
|
}
|