add lualine and play a bit with astroui
This commit is contained in:
parent
e0dfc1e2d1
commit
c42f7a4d8f
7 changed files with 58 additions and 7 deletions
|
|
@ -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
25
plugins/astrolsp.nix
Normal 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});
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
{pkgs, lib, ...}:{
|
|
||||||
extraPlugins = [pkgs.vimPlugins.astroui];
|
|
||||||
|
|
||||||
extraConfigLua = /*lua*/ ''
|
|
||||||
require('astroui').setup({});
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
14
plugins/astroui/default.nix
Normal file
14
plugins/astroui/default.nix
Normal 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});
|
||||||
|
'';
|
||||||
|
}
|
||||||
0
plugins/astroui/status.nix
Normal file
0
plugins/astroui/status.nix
Normal file
6
plugins/lualine.nix
Normal file
6
plugins/lualine.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
_:{
|
||||||
|
plugins.lualine = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
8
plugins/which-key.nix
Normal file
8
plugins/which-key.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
{pkgs, lib, ...}:{
|
||||||
|
plugins.which-key = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
# extraConfigLua = /*lua*/ ''
|
||||||
|
# require('astroui').setup({});
|
||||||
|
# '';
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue