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
|
|
|
};
|
|
|
|
|
|
|
|
mainConfig = isMaximal: {
|
|
|
|
config = {
|
|
|
|
vim = {
|
|
|
|
viAlias = true;
|
|
|
|
vimAlias = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
vim.lsp = {
|
|
|
|
enable = true;
|
|
|
|
formatOnSave = true;
|
|
|
|
lightbulb.enable = true;
|
|
|
|
lspsaga.enable = false;
|
|
|
|
nvimCodeActionMenu.enable = true;
|
|
|
|
trouble.enable = true;
|
|
|
|
lspSignature.enable = true;
|
|
|
|
rust.enable = isMaximal;
|
|
|
|
python = isMaximal;
|
|
|
|
clang.enable = isMaximal;
|
|
|
|
sql = isMaximal;
|
|
|
|
ts = isMaximal;
|
|
|
|
go = isMaximal;
|
|
|
|
zig.enable = isMaximal;
|
|
|
|
nix = {
|
|
|
|
enable = true;
|
|
|
|
formatter = "alejandra";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
vim.visuals = {
|
|
|
|
enable = true;
|
|
|
|
nvimWebDevicons.enable = true;
|
|
|
|
scrollBar.enable = true;
|
|
|
|
smoothScroll.enable = true;
|
|
|
|
cellularAutomaton.enable = true;
|
|
|
|
lspkind.enable = true;
|
|
|
|
indentBlankline = {
|
|
|
|
enable = true;
|
|
|
|
fillChar = "";
|
|
|
|
eolChar = "";
|
|
|
|
showCurrContext = true;
|
|
|
|
};
|
|
|
|
cursorWordline = {
|
|
|
|
enable = true;
|
|
|
|
lineTimeout = 0;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
vim.statusline.lualine = {
|
|
|
|
enable = true;
|
|
|
|
theme = "catppuccin";
|
|
|
|
};
|
|
|
|
|
|
|
|
vim.theme = {
|
|
|
|
enable = true;
|
|
|
|
name = "catppuccin";
|
|
|
|
style = "mocha";
|
|
|
|
};
|
|
|
|
vim.autopairs.enable = true;
|
|
|
|
|
|
|
|
vim.autocomplete = {
|
|
|
|
enable = true;
|
|
|
|
type = "nvim-cmp";
|
|
|
|
};
|
|
|
|
|
|
|
|
vim.filetree = {
|
|
|
|
nvimTreeLua = {
|
|
|
|
enable = true;
|
|
|
|
view = {
|
|
|
|
width = 25;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
vim.tabline = {
|
|
|
|
nvimBufferline.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
vim.treesitter = {
|
|
|
|
enable = true;
|
|
|
|
context.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
vim.binds = {
|
|
|
|
whichKey.enable = true;
|
|
|
|
cheatsheet.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
vim.telescope = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
vim.markdown = {
|
|
|
|
enable = true;
|
|
|
|
glow.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
vim.git = {
|
|
|
|
enable = true;
|
|
|
|
gitsigns.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
vim.utility = {
|
|
|
|
colorizer.enable = true;
|
|
|
|
icon-picker.enable = true;
|
|
|
|
venn-nvim.enable = false; # FIXME throws an error when its commands are ran manually
|
|
|
|
};
|
|
|
|
|
|
|
|
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-02-07 13:03:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
vim.terminal = {
|
|
|
|
toggleterm.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
vim.ui = {
|
|
|
|
noice.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
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 = {
|
|
|
|
nvim-session-manager.enable = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
vim.gestures = {
|
|
|
|
gesture-nvim.enable = false;
|
|
|
|
};
|
2023-02-16 21:32:46 +01:00
|
|
|
|
|
|
|
vim.comments = {
|
|
|
|
comment-nvim.enable = true;
|
2023-02-17 11:52:17 +01:00
|
|
|
kommentary = builtins.trace "WARNING: kommentary is deprecated and will be removed in the future, use comment-nvim instead" {enable = false;};
|
2023-02-16 21:32:46 +01:00
|
|
|
};
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
inherit neovimConfiguration mainConfig;
|
|
|
|
}
|