From 0affcf6d1de9dfe96efee692c0f88741f8778f0e Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Fri, 3 Feb 2023 10:37:33 +0300 Subject: [PATCH] dev: groundwork on dashboard module --- modules/dashboard/dashboard-nvim.nix | 52 +++++++++++----------------- modules/dashboard/default.nix | 1 - 2 files changed, 20 insertions(+), 33 deletions(-) diff --git a/modules/dashboard/dashboard-nvim.nix b/modules/dashboard/dashboard-nvim.nix index ef1b753..2683926 100644 --- a/modules/dashboard/dashboard-nvim.nix +++ b/modules/dashboard/dashboard-nvim.nix @@ -17,40 +17,28 @@ in { "dashboard-nvim" ]; - vim.nnoremap = { - "bn" = ":BufferLineCycleNext"; - "bp" = ":BufferLineCyclePrev"; - "bc" = ":BufferLinePick"; - "bse" = ":BufferLineSortByExtension"; - "bsd" = ":BufferLineSortByDirectory"; - "bsi" = ":lua require'bufferline'.sort_buffers_by(function (buf_a, buf_b) return buf_a.id < buf_b.id end)"; - "bmn" = ":BufferLineMoveNext"; - "bmp" = ":BufferLineMovePrev"; - "b1" = "BufferLineGoToBuffer 1"; - "b2" = "BufferLineGoToBuffer 2"; - "b3" = "BufferLineGoToBuffer 3"; - "b4" = "BufferLineGoToBuffer 4"; - "b5" = "BufferLineGoToBuffer 5"; - "b6" = "BufferLineGoToBuffer 6"; - "b7" = "BufferLineGoToBuffer 7"; - "b8" = "BufferLineGoToBuffer 8"; - "b9" = "BufferLineGoToBuffer 9"; - }; + # vim.nnoremap = { + # "bn" = ":BufferLineCycleNext"; + # "bp" = ":BufferLineCyclePrev"; + # "bc" = ":BufferLinePick"; + # "bse" = ":BufferLineSortByExtension"; + # "bsd" = ":BufferLineSortByDirectory"; + # "bsi" = ":lua require'bufferline'.sort_buffers_by(function (buf_a, buf_b) return buf_a.id < buf_b.id end)"; + # "bmn" = ":BufferLineMoveNext"; + # "bmp" = ":BufferLineMovePrev"; + # "b1" = "BufferLineGoToBuffer 1"; + # "b2" = "BufferLineGoToBuffer 2"; + # "b3" = "BufferLineGoToBuffer 3"; + # "b4" = "BufferLineGoToBuffer 4"; + # "b5" = "BufferLineGoToBuffer 5"; + # "b6" = "BufferLineGoToBuffer 6"; + # "b7" = "BufferLineGoToBuffer 7"; + # "b8" = "BufferLineGoToBuffer 8"; + # "b9" = "BufferLineGoToBuffer 9"; + # }; vim.luaConfigRC.dashboard-nvim = nvim.dag.entryAnywhere '' - require("dashboard-nvim").setup{ - hide = { - statusline -- hide statusline default is true - tabline -- hide the tabline - winbar -- hide winbar - }, - preview = { - command -- preview command - file_path -- preview file path - file_height -- preview file height - file_width -- preview file width - }, - } + require("dashboard-nvim").setup{} ''; }; } diff --git a/modules/dashboard/default.nix b/modules/dashboard/default.nix index a1e3289..3b7e636 100644 --- a/modules/dashboard/default.nix +++ b/modules/dashboard/default.nix @@ -5,7 +5,6 @@ ... }: { imports = [ - ./config.nix #./alpha-nvim.nix ./dashboard-nvim.nix ];