From 17882d608e088582da2718c99e3a332880d6c42e Mon Sep 17 00:00:00 2001 From: daniel Date: Sun, 25 Feb 2024 11:13:18 +0100 Subject: [PATCH 1/4] add nvm to zshrc --- profiles/base/.zshrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/profiles/base/.zshrc b/profiles/base/.zshrc index d98aa46..3a577c4 100644 --- a/profiles/base/.zshrc +++ b/profiles/base/.zshrc @@ -38,3 +38,7 @@ bindkey -v bindkey '^f' fzf-file-widget $HOME/.dotfiles/auto-update.sh + +export NVM_DIR="$HOME/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm +[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion From 5e69a30ad03d16578be6f32ab31c4e16b0b548a7 Mon Sep 17 00:00:00 2001 From: daniel Date: Tue, 27 Aug 2024 07:28:37 +0200 Subject: [PATCH 2/4] clean vimrc --- profiles/base/.vimrc | 70 +++++++++++++++++++++----------------------- 1 file changed, 34 insertions(+), 36 deletions(-) diff --git a/profiles/base/.vimrc b/profiles/base/.vimrc index e6141da..40071bf 100644 --- a/profiles/base/.vimrc +++ b/profiles/base/.vimrc @@ -1,13 +1,28 @@ -call plug#begin() -" ** style ** -Plug 'vim-airline/vim-airline' -Plug 'morhetz/gruvbox' +syntax on " syntax highlighting +filetype plugin indent on " enable filetype dependent features -"Plug 'Yggdroot/indentLine' -Plug 'nathanaelkane/vim-indent-guides' +set noswapfile " disable swap file + +set number " show line numbers +set cursorline " highlight line of cursor +set conceallevel=2 " hide syntac elements, i.e. the quotations in json + +set hlsearch " highlight all search results +set ignorecase " search case insensitive +set incsearch " incremental search + +set tabstop=4 " show tabs as 4 spaces +set shiftwidth=4 " indent by 4 spaces with <, > keys +set expandtab " indent by 4 spaces with tab +set colorcolumn=80,100,120 " color column + + +call plug#begin() +Plug 'vim-airline/vim-airline' " colored status line at bottom +Plug 'morhetz/gruvbox' " theme +Plug 'nathanaelkane/vim-indent-guides' " indentation lines " ** features ** -Plug 'godlygeek/tabular' Plug 'preservim/nerdcommenter' Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } Plug 'junegunn/fzf.vim' @@ -15,7 +30,7 @@ nnoremap :Files nnoremap :Rg " ** syntax ** -Plug 'elzr/vim-json' +Plug 'elzr/vim-jsmn' Plug 'stephpy/vim-yaml' Plug 'lervag/vimtex' Plug 'ibab/vim-snakemake' @@ -23,45 +38,28 @@ Plug 'plasticboy/vim-markdown' Plug 'airblade/vim-gitgutter' call plug#end() -" Always show statusline -set laststatus=2 - -" Use 256 colours -set t_Co=256 - -" show linenumber -set number - let g:vim_markdown_folding_disabled = 1 -syntax on - -filetype plugin indent on -" show tabs with 4 spaces width -set tabstop=4 -" use 4 space to indent with '>' -set shiftwidth=4 -" insert 4 spaces instead of tab -set expandtab - -set colorcolumn=80,100,120 - colorscheme gruvbox let g:gruvbox_contrast_dark = 'hard' set background=dark -" nerdcommenter -filetype plugin on - -" use conceals, but not on inserted lines -set conceallevel=2 -set concealcursor=nc let g:indent_guides_enable_on_vim_startup = 1 let g:indent_guides_start_level = 2 let g:indent_guides_guide_size = 1 -set cursorline " yaml spacing autocmd FileType yml,yaml setlocal ts=2 sts=2 sw=2 expandtab + +" json autocmds +augroup json_autocmd + autocmd! + autocmd FileType json set autoindent + autocmd FileType json set formatoptions=tcq2l + autocmd FileType json set textwidth=78 shiftwidth=2 + autocmd FileType json set softtabstop=2 tabstop=8 + autocmd FileType json set expandtab + autocmd FileType json set foldmethod=syntax +augroup END From 4fab5c31473209eb5ae988b0f916edc7ed13cd24 Mon Sep 17 00:00:00 2001 From: daniel Date: Tue, 27 Aug 2024 07:31:22 +0200 Subject: [PATCH 3/4] load rust --- profiles/base/.zshrc | 1 + 1 file changed, 1 insertion(+) diff --git a/profiles/base/.zshrc b/profiles/base/.zshrc index e44c7ec..f9dbdea 100644 --- a/profiles/base/.zshrc +++ b/profiles/base/.zshrc @@ -42,3 +42,4 @@ $HOME/.dotfiles/auto-update.sh export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion +[ -s "$HOME/.cargo/env" ] && \. "$HOME/.cargo/env" # Load cargo env From feb40ad3292ddec6180fea287152bbf6c45d3736 Mon Sep 17 00:00:00 2001 From: daniel Date: Thu, 29 Aug 2024 08:23:49 +0200 Subject: [PATCH 4/4] fix vim jsm plugin install --- profiles/base/.vimrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/profiles/base/.vimrc b/profiles/base/.vimrc index 40071bf..b6ed02f 100644 --- a/profiles/base/.vimrc +++ b/profiles/base/.vimrc @@ -30,12 +30,14 @@ nnoremap :Files nnoremap :Rg " ** syntax ** -Plug 'elzr/vim-jsmn' +Plug 'https://github.com/elzr/vim-json.git' Plug 'stephpy/vim-yaml' Plug 'lervag/vimtex' Plug 'ibab/vim-snakemake' Plug 'plasticboy/vim-markdown' Plug 'airblade/vim-gitgutter' + +Plug 'fmoralesc/vim-tutor-mode' call plug#end() let g:vim_markdown_folding_disabled = 1