2023-06-17 20:36:56 +00:00
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
2023-04-25 21:16:04 +00:00
|
|
|
imports = [
|
|
|
|
inputs.neovim-flake.homeManagerModules.default
|
|
|
|
];
|
|
|
|
|
|
|
|
programs.neovim-flake = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
vim = {
|
|
|
|
viAlias = true;
|
|
|
|
vimAlias = true;
|
|
|
|
debugMode = {
|
|
|
|
enable = false;
|
|
|
|
level = 20;
|
|
|
|
logFile = "/tmp/nvim.log";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
vim.lsp = {
|
|
|
|
formatOnSave = true;
|
|
|
|
lspkind.enable = false;
|
|
|
|
lightbulb.enable = true;
|
|
|
|
lspsaga.enable = false;
|
|
|
|
nvimCodeActionMenu.enable = true;
|
|
|
|
trouble.enable = true;
|
|
|
|
lspSignature.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
vim.languages = {
|
|
|
|
enableLSP = true;
|
|
|
|
enableFormat = true;
|
|
|
|
enableTreesitter = true;
|
|
|
|
enableExtraDiagnostics = true;
|
|
|
|
|
|
|
|
nix.enable = true;
|
|
|
|
html.enable = true;
|
|
|
|
clang.enable = false;
|
|
|
|
sql.enable = false;
|
|
|
|
rust = {
|
|
|
|
enable = false;
|
|
|
|
crates.enable = false;
|
|
|
|
};
|
|
|
|
ts.enable = true;
|
|
|
|
go.enable = true;
|
|
|
|
zig.enable = false;
|
|
|
|
python.enable = false;
|
|
|
|
dart.enable = false;
|
|
|
|
elixir.enable = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
vim.visuals = {
|
|
|
|
enable = true;
|
|
|
|
nvimWebDevicons.enable = true;
|
|
|
|
scrollBar.enable = true;
|
|
|
|
smoothScroll.enable = true;
|
|
|
|
cellularAutomaton.enable = true;
|
|
|
|
fidget-nvim.enable = true;
|
|
|
|
indentBlankline = {
|
|
|
|
enable = true;
|
|
|
|
fillChar = null;
|
|
|
|
eolChar = null;
|
|
|
|
showCurrContext = true;
|
|
|
|
};
|
2023-08-31 23:22:55 +00:00
|
|
|
cursorline = {
|
2023-04-25 21:16:04 +00:00
|
|
|
enable = true;
|
|
|
|
lineTimeout = 0;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
vim.statusline = {
|
|
|
|
lualine = {
|
|
|
|
enable = true;
|
|
|
|
theme = "onedark";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
vim.theme = {
|
|
|
|
enable = true;
|
|
|
|
name = "onedark";
|
|
|
|
style = "dark";
|
|
|
|
transparent = false;
|
|
|
|
};
|
|
|
|
vim.autopairs.enable = true;
|
|
|
|
|
|
|
|
vim.autocomplete = {
|
|
|
|
enable = true;
|
|
|
|
type = "nvim-cmp";
|
|
|
|
};
|
|
|
|
|
|
|
|
vim.filetree = {
|
2023-08-08 16:40:34 +00:00
|
|
|
nvimTree = {
|
2023-04-25 21:16:04 +00:00
|
|
|
enable = true;
|
2023-08-08 16:40:34 +00:00
|
|
|
openOnSetup = true;
|
|
|
|
disableNetrw = true;
|
|
|
|
|
|
|
|
hijackUnnamedBufferWhenOpening = true;
|
|
|
|
hijackCursor = true;
|
|
|
|
hijackDirectories = {
|
|
|
|
enable = true;
|
|
|
|
autoOpen = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
git = {
|
|
|
|
enable = true;
|
|
|
|
showOnDirs = false;
|
|
|
|
timeout = 100;
|
2023-04-25 21:16:04 +00:00
|
|
|
};
|
2023-08-08 16:40:34 +00:00
|
|
|
|
2023-04-25 21:16:04 +00:00
|
|
|
view = {
|
2023-08-08 16:40:34 +00:00
|
|
|
preserveWindowProportions = false;
|
|
|
|
cursorline = false;
|
|
|
|
width = {
|
|
|
|
min = 35;
|
|
|
|
max = -1;
|
|
|
|
padding = 1;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
renderer = {
|
|
|
|
indentMarkers.enable = true;
|
|
|
|
rootFolderLabel = false;
|
|
|
|
|
|
|
|
icons = {
|
|
|
|
modifiedPlacement = "after";
|
|
|
|
gitPlacement = "after";
|
|
|
|
show.git = true;
|
|
|
|
show.modified = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
diagnostics.enable = true;
|
|
|
|
|
|
|
|
modified = {
|
|
|
|
enable = true;
|
|
|
|
showOnDirs = false;
|
|
|
|
showOnOpenDirs = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
mappings = {
|
|
|
|
toggle = "<C-w>";
|
2023-04-25 21:16:04 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
vim.tabline = {
|
|
|
|
nvimBufferline.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
vim.treesitter.context.enable = true;
|
|
|
|
|
|
|
|
vim.binds = {
|
|
|
|
whichKey.enable = true;
|
|
|
|
cheatsheet.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
vim.telescope.enable = true;
|
|
|
|
|
|
|
|
vim.git = {
|
|
|
|
enable = true;
|
|
|
|
gitsigns.enable = true;
|
|
|
|
gitsigns.codeActions = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
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.projects = {
|
|
|
|
project-nvim.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
vim.utility = {
|
2023-06-24 00:08:30 +00:00
|
|
|
ccc.enable = true;
|
2023-04-25 21:16:04 +00:00
|
|
|
icon-picker.enable = true;
|
|
|
|
diffview-nvim.enable = true;
|
|
|
|
motion = {
|
|
|
|
hop.enable = true;
|
|
|
|
leap.enable = false;
|
|
|
|
};
|
2023-06-17 20:36:56 +00:00
|
|
|
vim-wakatime = {
|
|
|
|
enable = true;
|
|
|
|
cli-package = pkgs.wakatime;
|
|
|
|
};
|
2023-04-25 21:16:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
vim.notes = {
|
|
|
|
mind-nvim.enable = true;
|
|
|
|
todo-comments.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
vim.terminal = {
|
|
|
|
toggleterm.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
vim.ui = {
|
|
|
|
noice.enable = true;
|
2023-06-24 00:08:30 +00:00
|
|
|
smartcolumn = {
|
|
|
|
enable = true;
|
|
|
|
columnAt.languages = {
|
|
|
|
nix = 150;
|
|
|
|
ruby = 110;
|
|
|
|
java = 120;
|
|
|
|
go = [110 150];
|
|
|
|
};
|
|
|
|
};
|
2023-04-25 21:16:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
vim.assistant = {
|
|
|
|
copilot.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
vim.session = {
|
|
|
|
nvim-session-manager.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
vim.gestures = {
|
|
|
|
gesture-nvim.enable = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
vim.comments = {
|
|
|
|
comment-nvim.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
vim.presence = {
|
|
|
|
presence-nvim = {
|
|
|
|
enable = true;
|
|
|
|
auto_update = true;
|
|
|
|
image_text = "The Superior Text Editor";
|
|
|
|
client_id = "793271441293967371";
|
|
|
|
main_image = "neovim";
|
|
|
|
rich_presence = {
|
|
|
|
editing_text = "Editing %s";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|