configuration.nix: remove redundant vim parrent attributes

This commit is contained in:
raf 2024-04-14 15:04:47 +03:00
parent cb362a7905
commit 219f048238
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29

View file

@ -18,8 +18,7 @@ inputs: let
}; };
mainConfig = isMaximal: { mainConfig = isMaximal: {
config = { config.vim = {
vim = {
viAlias = true; viAlias = true;
vimAlias = true; vimAlias = true;
debugMode = { debugMode = {
@ -27,11 +26,10 @@ inputs: let
level = 20; level = 20;
logFile = "/tmp/nvim.log"; logFile = "/tmp/nvim.log";
}; };
};
vim.spellcheck.vim-dirtytalk.enable = true; spellcheck.vim-dirtytalk.enable = true;
vim.lsp = { lsp = {
formatOnSave = true; formatOnSave = true;
lspkind.enable = false; lspkind.enable = false;
lightbulb.enable = true; lightbulb.enable = true;
@ -43,14 +41,14 @@ inputs: let
nvim-docs-view.enable = isMaximal; nvim-docs-view.enable = isMaximal;
}; };
vim.debugger = { debugger = {
nvim-dap = { nvim-dap = {
enable = true; enable = true;
ui.enable = true; ui.enable = true;
}; };
}; };
vim.languages = { languages = {
enableLSP = true; enableLSP = true;
enableFormat = true; enableFormat = true;
enableTreesitter = true; enableTreesitter = true;
@ -83,7 +81,7 @@ inputs: let
}; };
}; };
vim.visuals = { visuals = {
enable = true; enable = true;
nvimWebDevicons.enable = true; nvimWebDevicons.enable = true;
scrollBar.enable = true; scrollBar.enable = true;
@ -107,70 +105,71 @@ inputs: let
}; };
}; };
vim.statusline = { statusline = {
lualine = { lualine = {
enable = true; enable = true;
theme = "catppuccin"; theme = "catppuccin";
}; };
}; };
vim.theme = { theme = {
enable = true; enable = true;
name = "catppuccin"; name = "catppuccin";
style = "mocha"; style = "mocha";
transparent = false; transparent = false;
}; };
vim.autopairs.enable = true;
vim.autocomplete = { autopairs.enable = true;
autocomplete = {
enable = true; enable = true;
type = "nvim-cmp"; type = "nvim-cmp";
}; };
vim.filetree = { filetree = {
nvimTree = { nvimTree = {
enable = true; enable = true;
}; };
}; };
vim.tabline = { tabline = {
nvimBufferline.enable = true; nvimBufferline.enable = true;
}; };
vim.treesitter.context.enable = true; treesitter.context.enable = true;
vim.binds = { binds = {
whichKey.enable = true; whichKey.enable = true;
cheatsheet.enable = true; cheatsheet.enable = true;
}; };
vim.telescope.enable = true; telescope.enable = true;
vim.git = { git = {
enable = true; enable = true;
gitsigns.enable = true; gitsigns.enable = true;
gitsigns.codeActions = false; # throws an annoying debug message gitsigns.codeActions = false; # throws an annoying debug message
}; };
vim.minimap = { minimap = {
minimap-vim.enable = false; minimap-vim.enable = false;
codewindow.enable = isMaximal; # lighter, faster, and uses lua for configuration codewindow.enable = isMaximal; # lighter, faster, and uses lua for configuration
}; };
vim.dashboard = { dashboard = {
dashboard-nvim.enable = false; dashboard-nvim.enable = false;
alpha.enable = isMaximal; alpha.enable = isMaximal;
}; };
vim.notify = { notify = {
nvim-notify.enable = true; nvim-notify.enable = true;
}; };
vim.projects = { projects = {
project-nvim.enable = isMaximal; project-nvim.enable = isMaximal;
}; };
vim.utility = { utility = {
ccc.enable = isMaximal; ccc.enable = isMaximal;
vim-wakatime.enable = isMaximal; vim-wakatime.enable = isMaximal;
icon-picker.enable = isMaximal; icon-picker.enable = isMaximal;
@ -186,21 +185,21 @@ inputs: let
}; };
}; };
vim.notes = { notes = {
obsidian.enable = false; # FIXME: neovim fails to build if obsidian is enabled obsidian.enable = false; # FIXME: neovim fails to build if obsidian is enabled
orgmode.enable = false; orgmode.enable = false;
mind-nvim.enable = isMaximal; mind-nvim.enable = isMaximal;
todo-comments.enable = true; todo-comments.enable = true;
}; };
vim.terminal = { terminal = {
toggleterm = { toggleterm = {
enable = true; enable = true;
lazygit.enable = true; lazygit.enable = true;
}; };
}; };
vim.ui = { ui = {
borders.enable = true; borders.enable = true;
noice.enable = true; noice.enable = true;
colorizer.enable = true; colorizer.enable = true;
@ -222,26 +221,26 @@ inputs: let
}; };
}; };
vim.assistant = { assistant = {
copilot = { copilot = {
enable = isMaximal; enable = isMaximal;
cmp.enable = isMaximal; cmp.enable = isMaximal;
}; };
}; };
vim.session = { session = {
nvim-session-manager.enable = false; nvim-session-manager.enable = false;
}; };
vim.gestures = { gestures = {
gesture-nvim.enable = false; gesture-nvim.enable = false;
}; };
vim.comments = { comments = {
comment-nvim.enable = true; comment-nvim.enable = true;
}; };
vim.presence = { presence = {
neocord.enable = true; neocord.enable = true;
}; };
}; };