add lualine and play a bit with astroui

This commit is contained in:
Prunebutt 2025-11-22 00:19:13 +01:00
parent e0dfc1e2d1
commit c42f7a4d8f
7 changed files with 58 additions and 7 deletions

View file

@ -62,6 +62,11 @@
buftypes = []; # buffer types to ignore sessions buftypes = []; # buffer types to ignore sessions
}; };
}; };
mappings = {
n = {
"<Leader>b" = { desc = "Buffers"; };
};
};
}; };
in { in {
extraPlugins = [pkgs.vimPlugins.astrocore]; extraPlugins = [pkgs.vimPlugins.astrocore];

25
plugins/astrolsp.nix Normal file
View file

@ -0,0 +1,25 @@
{pkgs, lib, ...}:let
inherit (lib.nixvim.lua) toLuaObject;
options = {
features = {
codelens = true; # enable/disable codelens refresh on start
inlay_hints = false; # enable/disable inlay hints on start
semantic_tokens = true; # enable/disable semantic token highlighting
};
formatting = {
format_on_save = {
enabled = true;
};
};
servers = [
"bash-language-server"
];
};
in {
extraPlugins = [pkgs.vimPlugins.astrolsp];
extraConfigLua = /*lua*/ ''
require('astroui').setup(${toLuaObject options});
'';
}

View file

@ -1,7 +0,0 @@
{pkgs, lib, ...}:{
extraPlugins = [pkgs.vimPlugins.astroui];
extraConfigLua = /*lua*/ ''
require('astroui').setup({});
'';
}

View file

@ -0,0 +1,14 @@
{pkgs, lib, ...}:let
inherit (lib.nixvim.lua) toLuaObject;
options = {
status.setup_colors.__raw = "function() print('foobar') end";
# colorscheme = "kanagawa";
};
in {
extraPlugins = [pkgs.vimPlugins.astroui];
extraConfigLua = /*lua*/ ''
require('astroui').setup(${toLuaObject options});
'';
}

View file

6
plugins/lualine.nix Normal file
View file

@ -0,0 +1,6 @@
_:{
plugins.lualine = {
enable = true;
};
}

8
plugins/which-key.nix Normal file
View file

@ -0,0 +1,8 @@
{pkgs, lib, ...}:{
plugins.which-key = {
enable = true;
};
# extraConfigLua = /*lua*/ ''
# require('astroui').setup({});
# '';
}