diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-09-28 15:31:11 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-09-28 15:31:11 +0200 |
| commit | 8b35ee07f9778803febc070b5138e1bebee5447f (patch) | |
| tree | e723397412a8bff9c972bce015428e6297fa329a /common/home/programs/nixvim | |
| parent | ac7f8ef19b645af5afe8f5f8044868a0cf25a620 (diff) | |
nixvim: fixes
Diffstat (limited to 'common/home/programs/nixvim')
| -rw-r--r-- | common/home/programs/nixvim/default.nix | 22 | ||||
| -rw-r--r-- | common/home/programs/nixvim/plugins/dashboard.nix | 118 | ||||
| -rw-r--r-- | common/home/programs/nixvim/plugins/default.nix | 22 |
3 files changed, 87 insertions, 75 deletions
diff --git a/common/home/programs/nixvim/default.nix b/common/home/programs/nixvim/default.nix index f8ec8c6..f7352d4 100644 --- a/common/home/programs/nixvim/default.nix +++ b/common/home/programs/nixvim/default.nix @@ -8,11 +8,25 @@ package = pkgs.unstable.neovim-unwrapped; extraConfigLua = '' - local signs = { Error = " ", Warn = " ", Hint = " ", Info = " " } + local signs = { + Error = " ", + Warn = " ", + Hint = " ", + Info = " " + } + for type, icon in pairs(signs) do local hl = "DiagnosticSign" .. type - vim.fn.sign_define(hl, { text = icon, texthl= hl, numhl = hl }) - end''; + vim.fn.sign_define( + hl, + { + text = icon, + texthl = hl, + numhl = hl + } + ) + end + ''; diagnostics = { virtual_text = { @@ -54,7 +68,7 @@ colorscheme = "gruvbox-dark-pale"; }; - plugins = import ./plugins/default.nix; + plugins = import ./plugins/default.nix { inherit pkgs; }; globals = { mapleader = ","; diff --git a/common/home/programs/nixvim/plugins/dashboard.nix b/common/home/programs/nixvim/plugins/dashboard.nix index 77a9f3e..68308da 100644 --- a/common/home/programs/nixvim/plugins/dashboard.nix +++ b/common/home/programs/nixvim/plugins/dashboard.nix @@ -1,68 +1,68 @@ { ... }: { - enable = true; - settings = { - change_to_vcs_root = true; - config = { - footer = [ "" ]; + enable = true; + settings = { + change_to_vcs_root = true; + config = { + footer = [ "" ]; - header = [ - "███╗ ██╗ ███████╗ ██████╗ ██╗ ██╗ ██╗ ███╗ ███╗" - "████╗ ██║ ██╔════╝██╔═══██╗ ██║ ██║ ██║ ████╗ ████║" - "██╔██╗ ██║ █████╗ ██║ ██║ ██║ ██║ ██║ ██╔████╔██║" - "██║╚██╗██║ ██╔══╝ ██║ ██║ ╚██╗ ██╔╝ ██║ ██║╚██╔╝██║" - "██║ ╚████║ ███████╗╚██████╔╝ ╚████╔╝ ██║ ██║ ╚═╝ ██║" - "╚═╝ ╚═══╝ ╚══════╝ ╚═════╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝" - ]; + header = [ + "███╗ ██╗ ███████╗ ██████╗ ██╗ ██╗ ██╗ ███╗ ███╗" + "████╗ ██║ ██╔════╝██╔═══██╗ ██║ ██║ ██║ ████╗ ████║" + "██╔██╗ ██║ █████╗ ██║ ██║ ██║ ██║ ██║ ██╔████╔██║" + "██║╚██╗██║ ██╔══╝ ██║ ██║ ╚██╗ ██╔╝ ██║ ██║╚██╔╝██║" + "██║ ╚████║ ███████╗╚██████╔╝ ╚████╔╝ ██║ ██║ ╚═╝ ██║" + "╚═╝ ╚═══╝ ╚══════╝ ╚═════╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝" + ]; - mru = { - limit = 10; - }; + mru = { + limit = 10; + }; - project = { - enable = true; - }; + project = { + enable = true; + }; - packages.enable = false; + packages.enable = false; - shortcut = [ - { - action = { - __raw = '' - function(path) - vim.cmd('Telescope find_files') - end - ''; - }; - desc = "Files"; - group = "Label"; - icon = " "; - icon_hl = "@variable"; - key = "f"; - } - { - action = { - __raw = '' - function() - vim.cmd('cd ~/global/system/config'); vim.cmd('Telescope find_files') - end - ''; - }; - icon = " "; - icon_hl = "@variable"; - desc = "System Config"; - group = "Number"; - key = "c"; - } - ]; + shortcut = [ + { + action = { + __raw = '' + function(path) + vim.cmd('Telescope find_files') + end + ''; + }; + desc = "Files"; + group = "Label"; + icon = " "; + icon_hl = "@variable"; + key = "f"; + } + { + action = { + __raw = '' + function() + vim.cmd('cd ~/global/system/config') + vim.cmd('Telescope find_files') + end + ''; + }; + icon = " "; + icon_hl = "@variable"; + desc = "System Config"; + group = "Number"; + key = "c"; + } + ]; - hide = [ - "statusline" - "tabline" - "winbar" - ]; - }; - theme = "hyper"; - }; + hide = [ + "statusline" + "tabline" + "winbar" + ]; }; - + theme = "hyper"; + }; +} diff --git a/common/home/programs/nixvim/plugins/default.nix b/common/home/programs/nixvim/plugins/default.nix index 6005c57..efe4988 100644 --- a/common/home/programs/nixvim/plugins/default.nix +++ b/common/home/programs/nixvim/plugins/default.nix @@ -13,15 +13,13 @@ let "lsp" ]; in -{ - plugins = builtins.listToAttrs ( - map (n: { - name = n; - value = - if builtins.pathExists ./${n}.nix then - (import ./${n}.nix { inherit pkgs; }) - else - { enable = true; }; - }) plugins - ); -} +builtins.listToAttrs ( + map (n: { + name = n; + value = + if builtins.pathExists ./${n}.nix then + (import ./${n}.nix { inherit pkgs; }) + else + { enable = true; }; + }) plugins +) |