feat: configure navic and integrate with lualine + update flake update action (#11)

Configured Navic and integrated it with Lualine. This provides context
about the code that is being worked on.

Also added a PAT to be able to create a PR when the Flake Update Github
action runs.
This commit is contained in:
Roel de Cort 2024-07-06 01:20:39 +02:00 committed by GitHub
parent c991360154
commit 97247ed10f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 90 additions and 41 deletions

View file

@ -25,6 +25,7 @@ _: {
./plugins/editor/indent-blankline.nix
./plugins/editor/todo-comments.nix
./plugins/editor/copilot-chat.nix
./plugins/editor/navic.nix
# UI plugins
./plugins/ui/bufferline.nix

View file

@ -0,0 +1,38 @@
_: {
plugins.navic = {
enable = true;
separator = " ";
highlight = true;
depthLimit = 5;
lsp = {
autoAttach = true;
};
icons = {
Array = "󱃵 ";
Boolean = " ";
Class = " ";
Constant = " ";
Constructor = " ";
Enum = " ";
EnumMember = " ";
Event = " ";
Field = "󰽏 ";
File = " ";
Function = "󰡱 ";
Interface = " ";
Key = " ";
Method = " ";
Module = "󰕳 ";
Namespace = " ";
Null = "󰟢 ";
Number = " ";
Object = " ";
Operator = " ";
Package = "󰏖 ";
String = " ";
Struct = " ";
TypeParameter = " ";
Variable = " ";
};
};
}

View file

@ -28,6 +28,10 @@
illuminate = {
enabled = true;
};
navic = {
enabled = true;
custom_bg = "NONE";
};
treesitter = true;
telescope.enabled = true;
indent_blankline.enabled = true;

View file

@ -3,6 +3,7 @@ _: {
enable = true;
globalstatus = true;
extensions = [
"fzf"
"neo-tree"
];
disabledFiletypes = {
@ -53,10 +54,13 @@ _: {
}
];
lualine_x = [
{
name = "navic";
}
{
name = "diff";
extraConfig = {
symbos = {
symbols = {
added = " ";
modified = " ";
removed = " ";