nvf/configuration.nix

256 lines
5.5 KiB
Nix
Raw Normal View History

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 ? {},
extraModules ? [],
...
2023-02-07 12:03:21 +00:00
}:
modulesWithInputs {
inherit pkgs lib check extraSpecialArgs extraModules;
2023-02-10 17:39:31 +00:00
configuration.imports = modules;
2023-02-07 12:03:21 +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;
debugMode = {
enable = false;
level = 16;
logFile = "/tmp/nvim.log";
2023-02-07 12:03:21 +00:00
};
spellcheck = {
enable = isMaximal;
};
lsp = {
2023-04-17 22:48:44 +00:00
formatOnSave = true;
lspkind.enable = false;
lightbulb.enable = true;
lspsaga.enable = false;
nvimCodeActionMenu.enable = isMaximal;
2023-04-17 22:48:44 +00:00
trouble.enable = true;
lspSignature.enable = true;
lsplines.enable = isMaximal;
nvim-docs-view.enable = isMaximal;
2023-04-17 22:48:44 +00:00
};
debugger = {
2023-05-04 15:41:11 +00:00
nvim-dap = {
enable = true;
ui.enable = true;
};
};
languages = {
enableLSP = true;
enableFormat = true;
enableTreesitter = true;
enableExtraDiagnostics = true;
nix.enable = true;
2023-04-17 22:05:18 +00:00
html.enable = isMaximal;
css.enable = isMaximal;
sql.enable = isMaximal;
2023-08-09 04:41:48 +00:00
java.enable = isMaximal;
ts.enable = isMaximal;
2023-06-03 14:18:26 +00:00
svelte.enable = isMaximal;
go.enable = isMaximal;
zig.enable = isMaximal;
python.enable = isMaximal;
dart.enable = isMaximal;
elixir.enable = isMaximal;
bash.enable = isMaximal;
terraform.enable = isMaximal;
nim.enable = false;
tailwind.enable = isMaximal;
clang = {
enable = isMaximal;
lsp.server = "clangd";
};
rust = {
enable = isMaximal;
crates.enable = true;
};
2023-02-07 12:03:21 +00:00
};
visuals = {
2023-02-07 12:03:21 +00:00
enable = true;
nvimWebDevicons.enable = true;
scrollBar.enable = true;
smoothScroll.enable = true;
cellularAutomaton.enable = false;
fidget-nvim.enable = true;
highlight-undo.enable = true;
2023-02-07 12:03:21 +00:00
indentBlankline = {
enable = true;
fillChar = null;
eolChar = null;
scope = {
enabled = true;
};
2023-02-07 12:03:21 +00:00
};
2023-08-07 02:30:06 +00:00
cursorline = {
2023-02-07 12:03:21 +00:00
enable = true;
lineTimeout = 0;
};
};
statusline = {
2023-03-01 08:34:23 +00:00
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
};
theme = {
2023-02-07 12:03:21 +00:00
enable = true;
name = "catppuccin";
style = "mocha";
transparent = false;
2023-02-07 12:03:21 +00:00
};
autopairs.enable = true;
autocomplete = {
enable = true;
2023-02-07 12:03:21 +00:00
type = "nvim-cmp";
};
filetree = {
2023-07-30 08:41:52 +00:00
nvimTree = {
2023-02-07 12:03:21 +00:00
enable = true;
};
};
tabline = {
2023-02-07 12:03:21 +00:00
nvimBufferline.enable = true;
};
treesitter.context.enable = true;
2023-02-07 12:03:21 +00:00
binds = {
2023-02-07 12:03:21 +00:00
whichKey.enable = true;
cheatsheet.enable = true;
};
telescope.enable = true;
2023-02-07 12:03:21 +00:00
git = {
2023-02-07 12:03:21 +00:00
enable = true;
gitsigns.enable = true;
gitsigns.codeActions.enable = false; # throws an annoying debug message
2023-02-07 12:03:21 +00:00
};
minimap = {
2023-02-07 12:03:21 +00:00
minimap-vim.enable = false;
codewindow.enable = isMaximal; # lighter, faster, and uses lua for configuration
2023-02-07 12:03:21 +00:00
};
dashboard = {
2023-02-07 12:03:21 +00:00
dashboard-nvim.enable = false;
alpha.enable = isMaximal;
2023-02-07 12:03:21 +00:00
};
notify = {
2023-02-07 12:03:21 +00:00
nvim-notify.enable = true;
};
projects = {
project-nvim.enable = isMaximal;
2023-04-07 17:36:27 +00:00
};
utility = {
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 = false;
2024-02-17 00:19:38 +00:00
};
2023-02-07 12:03:21 +00:00
};
notes = {
2024-02-17 00:19:38 +00:00
obsidian.enable = false; # FIXME: neovim fails to build if obsidian is enabled
orgmode.enable = false;
mind-nvim.enable = isMaximal;
todo-comments.enable = true;
2023-02-07 12:03:21 +00:00
};
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
};
ui = {
borders.enable = true;
2023-02-07 12:03:21 +00:00
noice.enable = true;
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;
breadcrumbs = {
enable = isMaximal;
navbuddy.enable = isMaximal;
};
smartcolumn = {
enable = true;
2024-03-10 21:00:14 +00:00
setupOpts.custom_colorcolumn = {
# 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-02-07 12:03:21 +00:00
};
assistant = {
chatgpt.enable = false;
copilot = {
enable = false;
cmp.enable = isMaximal;
};
2023-02-07 12:03:21 +00:00
};
session = {
nvim-session-manager.enable = false;
2023-02-07 12:03:21 +00:00
};
gestures = {
2023-02-07 12:03:21 +00:00
gesture-nvim.enable = false;
};
comments = {
comment-nvim.enable = true;
};
presence = {
2024-04-27 15:00:30 +00:00
neocord.enable = false;
};
2023-02-07 12:03:21 +00:00
};
};
in {
inherit neovimConfiguration mainConfig tidalConfig;
2023-02-07 12:03:21 +00:00
}