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:
parent
c991360154
commit
97247ed10f
7 changed files with 90 additions and 41 deletions
|
|
@ -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
|
||||
|
|
|
|||
38
config/plugins/editor/navic.nix
Normal file
38
config/plugins/editor/navic.nix
Normal 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 = " ";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -28,6 +28,10 @@
|
|||
illuminate = {
|
||||
enabled = true;
|
||||
};
|
||||
navic = {
|
||||
enabled = true;
|
||||
custom_bg = "NONE";
|
||||
};
|
||||
treesitter = true;
|
||||
telescope.enabled = true;
|
||||
indent_blankline.enabled = true;
|
||||
|
|
|
|||
|
|
@ -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 = " ";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue