more nixvim progress

This commit is contained in:
Natalie 2025-04-21 15:06:26 -07:00
parent d1adefae9d
commit 318316c05b
No known key found for this signature in database
GPG key ID: 61F4EAEB0C9C3D5F
5 changed files with 237 additions and 5 deletions

View file

@ -12,8 +12,6 @@
programs.nixvim = {
enable = true;
defaultEditor = true;
globals = {
#Set leader to space, and localleader to \
mapleader = " ";

189
modules/nixvim/icons.nix Normal file
View file

@ -0,0 +1,189 @@
{lib, ...}: {
options.nvix.icons = lib.mkOption {
type = lib.types.attrs;
default = {};
};
config.nvix.icons = {
kind = {
Array = "";
Boolean = "";
Class = "";
Color = "";
Constant = "";
Constructor = "";
Enum = "";
EnumMember = "";
Event = "";
Field = "";
File = "";
Folder = "";
Function = "";
Interface = "";
Key = "";
Keyword = "";
Method = "";
Module = "";
Namespace = "";
Null = "";
Number = "";
Object = "";
Operator = "";
Package = "";
Property = "";
Reference = "";
Snippet = "";
String = "";
Struct = "";
Text = "";
TypeParameter = "";
Unit = "";
Value = "";
Variable = "";
Copilot = "";
TabNine = "";
};
git = {
LineAdded = "";
LineModified = "";
LineRemoved = "";
FileDeleted = "";
FileIgnored = "󰫙";
FileRenamed = "";
FileStaged = "";
FileUnmerged = "";
FileMerged = "";
FileUnstaged = "";
FileUntracked = "";
FileChanged = "󰉺";
Copied = "󰆏";
Ignored = "";
Diff = "";
Repo = "";
Octoface = "";
Branch = "";
};
ui = {
lazy = {
ft = "";
lazy = "󰂠 ";
loaded = "";
not_loaded = "";
};
ArrowCircleDown = "";
ArrowCircleLeft = "";
ArrowCircleRight = "";
ArrowCircleUp = "";
BoldArrowDown = "";
BoldArrowLeft = "";
BoldArrowRight = "";
BoldArrowUp = "";
BoldClose = "";
BoldDividerLeft = "";
BoldDividerRight = "";
BoldLineLeft = "";
BookMark = "";
BoxChecked = "";
Bug = "";
Stacks = "";
Scopes = "";
Watches = "";
DebugConsole = "";
Calendar = "";
Check = "";
ChevronRight = ">";
ChevronShortDown = "";
ChevronShortLeft = "";
ChevronShortRight = "";
ChevronShortUp = "";
Circle = "";
Close = "";
CloudDownload = "";
Code = "";
Comment = "";
Dashboard = "";
DividerLeft = "";
DividerRight = "";
DoubleChevronRight = "»";
Ellipsis = "";
EmptyFolder = "";
EmptyFolderOpen = "";
ExitCircle = "󰿅";
File = "";
FileSymlink = "";
Files = "";
FileRename = "";
FindFile = "󰈞";
FindText = "";
Fire = "";
Folder = "";
FolderOpen = "";
FolderSymlink = "";
Forward = "";
Gear = "";
History = "";
Lightbulb = "";
LineLeft = "";
LineMiddle = "";
List = "";
Lock = "";
NewFile = "";
Note = "";
Package = "";
Pencil = "󰏫";
Plus = "";
Project = "";
Search = "";
SignIn = "";
SignOut = "";
Tab = "";
Table = "";
Target = "󰀘";
Telescope = "";
Text = "";
Tree = "";
Triangle = "󰐊";
TriangleShortArrowDown = "";
TriangleShortArrowLeft = "";
TriangleShortArrowRight = "";
TriangleShortArrowUp = "";
};
diagnostics = {
BoldError = "";
Error = "";
BoldWarning = "";
Warning = "";
BoldInformation = "";
Information = "";
BoldQuestion = "";
Question = "";
BoldHint = "";
Hint = "󰌶";
Debug = "";
Trace = "";
};
misc = {
Robot = "";
Squirrel = "";
Tag = "";
Watch = "";
Smiley = "";
Package = "";
CircuitBoard = "";
LualineFmt = "";
};
nvtree_chad = {
default = "󰈚";
symlink = "";
folder = {
default = "";
empty = "";
empty_open = "";
open = "";
symlink = "";
symlink_open = "";
arrow_open = "";
arrow_closed = "";
};
};
};
}

View file

@ -3,9 +3,9 @@
opts = {
# Show line numbers
number = true;
# You can also add relative line numbers, to help with jumping.
# Experiment for yourself to see if you like it!
#relativenumber = true
relativenumber = true;
shiftwidth = 2;
# Enable mouse mode, can be useful for resizing splits for example!
mouse = "a";

View file

@ -0,0 +1,40 @@
{
lib,
pkgs,
...
}: {
programs.nixvim = {
extraPackages = with pkgs; [
gh
wordnet
glab
];
extraPlugins = [
];
plugins = {
blink-cmp = {
enable = true;
lazyLoad.settings.event = [
"InsertEnter"
"CmdlineEnter"
];
settings = {
keymap.preset = "super-tab";
completion = {
ghost_test.enabled = true;
documentation = {
auto_show = true;
window.border = "rounded";
};
};
};
};
};
};
}

View file

@ -0,0 +1,5 @@
{pkgs, ...}: {
imports = [
./blink.nix
];
}