diff --git a/plugins/astrocore.nix b/plugins/astrocore.nix index 99b708c..10bc7c2 100644 --- a/plugins/astrocore.nix +++ b/plugins/astrocore.nix @@ -62,6 +62,11 @@ buftypes = []; # buffer types to ignore sessions }; }; + mappings = { + n = { + "b" = { desc = "Buffers"; }; + }; + }; }; in { extraPlugins = [pkgs.vimPlugins.astrocore]; diff --git a/plugins/astrolsp.nix b/plugins/astrolsp.nix new file mode 100644 index 0000000..dc5cbf2 --- /dev/null +++ b/plugins/astrolsp.nix @@ -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}); + ''; +} diff --git a/plugins/astroui.nix b/plugins/astroui.nix deleted file mode 100644 index 1dc2258..0000000 --- a/plugins/astroui.nix +++ /dev/null @@ -1,7 +0,0 @@ -{pkgs, lib, ...}:{ - extraPlugins = [pkgs.vimPlugins.astroui]; - - extraConfigLua = /*lua*/ '' - require('astroui').setup({}); - ''; -} diff --git a/plugins/astroui/default.nix b/plugins/astroui/default.nix new file mode 100644 index 0000000..66ae0ca --- /dev/null +++ b/plugins/astroui/default.nix @@ -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}); + ''; +} diff --git a/plugins/astroui/status.nix b/plugins/astroui/status.nix new file mode 100644 index 0000000..e69de29 diff --git a/plugins/lualine.nix b/plugins/lualine.nix new file mode 100644 index 0000000..2bf639c --- /dev/null +++ b/plugins/lualine.nix @@ -0,0 +1,6 @@ +_:{ + plugins.lualine = { + enable = true; + + }; +} diff --git a/plugins/which-key.nix b/plugins/which-key.nix new file mode 100644 index 0000000..9d2503b --- /dev/null +++ b/plugins/which-key.nix @@ -0,0 +1,8 @@ +{pkgs, lib, ...}:{ + plugins.which-key = { + enable = true; + }; + # extraConfigLua = /*lua*/ '' + # require('astroui').setup({}); + # ''; +}