From 14abcc2583713a685aa9a096ddf4272b8a17977c Mon Sep 17 00:00:00 2001 From: Anish Lakhwara Date: Fri, 22 Apr 2022 11:34:43 +1000 Subject: [PATCH] remove TabNine use homemanager Shell variables fancy dashboard --- users/profiles/nvim/default.nix | 35 ++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/users/profiles/nvim/default.nix b/users/profiles/nvim/default.nix index be91f7c3..cf5c9618 100644 --- a/users/profiles/nvim/default.nix +++ b/users/profiles/nvim/default.nix @@ -50,7 +50,7 @@ let pynvim six python-lsp-server - pylsp-mypy + # pylsp-mypy pylint black # other python packages you want @@ -58,14 +58,14 @@ let python-with-my-packages = pkgs.python3.withPackages my-python-packages; in { - environment.variables.EDITOR = "nvim"; - environment.shellAliases = { + home.sessionVariables.EDITOR = "nvim"; + home.shellAliases = { k = "cd ~/kitaab/vimwiki; vim -c :VimwikiIndex; cd $OLDPWD"; kz = "cd ~/kitaab/vimwiki; vim -c :VimwikiIndex -c :ZettelNew; cd $OLDPWD"; }; #environment.systemPackages = with customPlugins; [ tidal ]; - home-manager.users.anish.programs.neovim = { + programs.neovim = { enable = true; extraConfig = '' @@ -247,6 +247,24 @@ in nnoremap vll :call LspLocationList() nnoremap va :lua require('telescope.builtin').lsp_code_actions(require('telescope.themes').get_cursor()) + " dashboard + let g:dashboard_custom_header = [ + \' ', + \' ⣴⣶⣤⡤⠦⣤⣀⣤⠆ ⣈⣭⣭⣿⣶⣿⣦⣼⣆ ', + \' ⠉⠻⢿⣿⠿⣿⣿⣶⣦⠤⠄⡠⢾⣿⣿⡿⠋⠉⠉⠻⣿⣿⡛⣦ ', + \' ⠈⢿⣿⣟⠦ ⣾⣿⣿⣷⠄⠄⠄⠄⠻⠿⢿⣿⣧⣄ ', + \' ⣸⣿⣿⢧ ⢻⠻⣿⣿⣷⣄⣀⠄⠢⣀⡀⠈⠙⠿⠄ ', + \' ⢠⣿⣿⣿⠈ ⠡⠌⣻⣿⣿⣿⣿⣿⣿⣿⣛⣳⣤⣀⣀ ', + \' ⢠⣧⣶⣥⡤⢄ ⣸⣿⣿⠘⠄ ⢀⣴⣿⣿⡿⠛⣿⣿⣧⠈⢿⠿⠟⠛⠻⠿⠄ ', + \' ⣰⣿⣿⠛⠻⣿⣿⡦⢹⣿⣷ ⢊⣿⣿⡏ ⢸⣿⣿⡇ ⢀⣠⣄⣾⠄ ', + \' ⣠⣿⠿⠛⠄⢀⣿⣿⣷⠘⢿⣿⣦⡀ ⢸⢿⣿⣿⣄ ⣸⣿⣿⡇⣪⣿⡿⠿⣿⣷⡄ ', + \' ⠙⠃ ⣼⣿⡟ ⠈⠻⣿⣿⣦⣌⡇⠻⣿⣿⣷⣿⣿⣿ ⣿⣿⡇⠄⠛⠻⢷⣄ ', + \' ⢻⣿⣿⣄ ⠈⠻⣿⣿⣿⣷⣿⣿⣿⣿⣿⡟ ⠫⢿⣿⡆ ', + \' ⠻⣿⣿⣿⣿⣶⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⡟⢀⣀⣤⣾⡿⠃ ', + \] + let g:dashboard_custom_footer = ["Run wild"] + + " lua config lua <