by adding a thingy that merges two attrsets, one with the syntactic sugar and one without, since that sugar is what broke the screenshots due to an issue in the upstream flake. everything works now :D oh i also added spell as a source for blink-cmp in nvf.nix
82 lines
2.2 KiB
Nix
82 lines
2.2 KiB
Nix
{ pkgs, ... }:
|
|
{
|
|
programs.nvf = {
|
|
enable = true;
|
|
settings = {
|
|
vim = {
|
|
theme = {
|
|
enable = true;
|
|
name = "base16";
|
|
};
|
|
|
|
statusline.lualine.enable = true; # statusline
|
|
telescope.enable = true; # fuzzy finder
|
|
filetree.neo-tree.enable = true; # filetree
|
|
binds.cheatsheet.enable = true; # telescope-searchable cheatsheet
|
|
binds.hardtime-nvim = {
|
|
enable = true;
|
|
setupOpts = {
|
|
restriction_mode = "hint";
|
|
};
|
|
};
|
|
|
|
viAlias = true;
|
|
vimAlias = true;
|
|
lsp.enable = true;
|
|
globals.mapleader = " ";
|
|
globals.maplocalleader = ",";
|
|
utility.sleuth.enable = true; # makes vim use consistent indentations style
|
|
clipboard = {
|
|
enable = true;
|
|
providers.wl-copy.enable = true;
|
|
registers = "unnamedplus"; # uses system clipboard
|
|
};
|
|
languages = {
|
|
enableDAP = true;
|
|
enableExtraDiagnostics = true;
|
|
enableFormat = true;
|
|
enableTreesitter = true;
|
|
|
|
rust.enable = true;
|
|
nix.enable = true;
|
|
markdown.enable = true;
|
|
java.enable = true;
|
|
};
|
|
autocomplete.blink-cmp = {
|
|
enable = true;
|
|
sourcePlugins = {
|
|
emoji.enable = true;
|
|
spell.enable = true;
|
|
};
|
|
};
|
|
options = {
|
|
conceallevel = 3;
|
|
};
|
|
notes.neorg = {
|
|
enable = true;
|
|
treesitter = {
|
|
enable = true;
|
|
norgPackage = pkgs.tree-sitter-grammars.tree-sitter-norg;
|
|
};
|
|
setupOpts.load = {
|
|
"core.defaults".enable = true;
|
|
"core.dirman".config = {
|
|
workspaces = {
|
|
second-brain = "~/second-brain";
|
|
};
|
|
default_workspace = "second-brain";
|
|
index = "index.norg";
|
|
};
|
|
"core.journal".config = {
|
|
workspace = "second-brain";
|
|
};
|
|
"core.summary".enable = true;
|
|
"core.summary".config = {
|
|
strategy = "by_path";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|