From 9859e2af25d32caf426026ab41ba9c5511e925ed Mon Sep 17 00:00:00 2001 From: Prashantha T P Date: Thu, 2 Sep 2021 11:19:27 +0530 Subject: [PATCH 01/26] (chore) cleanup headers and add neovim link --- nvim/README.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/nvim/README.md b/nvim/README.md index f345fed..b734ae7 100644 --- a/nvim/README.md +++ b/nvim/README.md @@ -1,21 +1,20 @@ -# My Dotfiles ![](https://img.shields.io/badge/config%20for-nvim-blue?style=for-the-badge) +# [![Nvim](https://img.shields.io/badge/config%20for-vim-blue?style=for-the-badge)](https://neovim.io/) --- -My setup for various applications. +## Neovim :rocket: -## nvim :rocket: - -### COC : Conquer of Completion +### Plugins +#### 1. COC : Conquer of Completion - `:CocCommand clangd.install ` (make sure clangd path is added to `:CocConfig`) - `:CocInstall coc-clangd coc-css coc-emmet coc-eslint coc-html coc-java coc-jedi coc-json coc-lua coc-pairs coc-prettier coc-pyright coc-snippets coc-tsserver coc-vimlsp ` - quick tip : you can move to floating window using `C-w` commands -### Firenvim +#### 2. Firenvim -#### Installation +##### Installation - first follow installation instruction here : https://github.com/glacambre/firenvim - to setup config jsons run From 7231c36da3b02a3ce470c6dbeb366b8409781f39 Mon Sep 17 00:00:00 2001 From: Prashantha T P Date: Fri, 10 Sep 2021 22:59:42 +0530 Subject: [PATCH 02/26] (color) use gruvbox feels much faster loading --- nvim/general/colorscheme_settings.vim | 2 +- nvim/general/git.vim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nvim/general/colorscheme_settings.vim b/nvim/general/colorscheme_settings.vim index 96ac0ca..c973fc8 100644 --- a/nvim/general/colorscheme_settings.vim +++ b/nvim/general/colorscheme_settings.vim @@ -18,7 +18,7 @@ let g:gruvbox_material_better_performance = 1 "configuration must be dont before applying colorscheme " "if &filetype!='gitcommit' -colorscheme gruvbox-material +colorscheme gruvbox "endif " }}} diff --git a/nvim/general/git.vim b/nvim/general/git.vim index 1f501ab..6676078 100644 --- a/nvim/general/git.vim +++ b/nvim/general/git.vim @@ -23,5 +23,5 @@ endif augroup GITCOMMIT_SETTINGS "https://vi.stackexchange.com/questions/4343/can-i-detect-whether-current-vim-instance-is-launched-by-git autocmd! - autocmd FileType gitcommit silent :call Set_git_settings() + autocmd FileType gitcommit,gitrebase silent :call Set_git_settings() augroup END From 3677cdf5bd786cfb0f0ce2d21b421f09693654fd Mon Sep 17 00:00:00 2001 From: Prashantha T P Date: Fri, 10 Sep 2021 23:00:33 +0530 Subject: [PATCH 03/26] (chore) remove C-W mapping --- nvim/general/leader.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvim/general/leader.vim b/nvim/general/leader.vim index fb62310..2b4c4f0 100644 --- a/nvim/general/leader.vim +++ b/nvim/general/leader.vim @@ -8,7 +8,7 @@ nnoremap p :bprev nnoremap b :buffers " splits ----- {{{ -nnoremap w w +"nnoremap w w "removed to support vimwiki nnoremap h h nnoremap l l nnoremap j j From ac3ab6fa4f81e8d9d94d83d175f82b1007878869 Mon Sep 17 00:00:00 2001 From: Prashantha T P Date: Fri, 10 Sep 2021 23:08:25 +0530 Subject: [PATCH 04/26] (feat) use vim-commentary,vimwiki for speed improvements + use vim-commentary instead of nerdcommenter + use gruvbox instead of gruvbox-material + move nerdtree settings to different file --- nvim/plugs/plugins.vim | 86 ++++-------------------------------------- 1 file changed, 8 insertions(+), 78 deletions(-) diff --git a/nvim/plugs/plugins.vim b/nvim/plugs/plugins.vim index 3712bf6..0f30a08 100644 --- a/nvim/plugs/plugins.vim +++ b/nvim/plugs/plugins.vim @@ -1,10 +1,13 @@ " plugins ----- {{{ call plug#begin("$VIM/nvim/plugged") +"https://github.com/junegunn/vim-plug#plug-options Plug 'morhetz/gruvbox' -Plug 'sainnhe/gruvbox-material' -Plug 'preservim/nerdtree' +"Plug 'sainnhe/gruvbox-material' +" NERD tree will be loaded on the first invocation of NERDTreeToggle command" +Plug 'preservim/nerdtree',{ 'on': 'NERDTreeToggle'} Plug 'tiagofumo/vim-nerdtree-syntax-highlight' Plug 'tpope/vim-fugitive' +Plug 'tpope/vim-commentary' Plug 'ryanoasis/vim-devicons' " Track the engine. Plug 'SirVer/ultisnips' @@ -18,9 +21,11 @@ Plug 'neoclide/coc.nvim', {'branch': 'release'} "Plug 'w0rp/ale' Plug 'sheerun/vim-polyglot' Plug 'itchyny/lightline.vim' -Plug 'preservim/nerdcommenter' +"Plug 'preservim/nerdcommenter' Plug 'tpope/vim-surround' +Plug 'vimwiki/vimwiki' + "Plug 'mhinz/vim-startify' "Plug 'jlanzarotta/bufexplorer' @@ -46,81 +51,6 @@ let g:UltiSnipsExpandTrigger = '' "to aviod overlapping with coc mapping "let g:UltiSnipsJumpBackwardTrigger="" " }}} -" NERDTree ----- {{{ -let g:NERDTreeShowHidden = 1 -let g:NERDTreeMinimalUI = 0 " hide helper -let g:NERDTreeIgnore = ['^node_modules$','\.git$', '\.idea$', '\.vscode$', '\.history$'] " ignore node_modules to increase load speed -let g:NERDTreeStatusline = '' " set to empty to use lightline -" " Toggle -"noremap :NERDTreeToggle -nnoremap t :NERDTreeToggle -nnoremap y :NERDTreeFind :vertical resize 35 -" " Close window if NERDTree is the last one -autocmd BufEnter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif -" " Map to open current file in NERDTree and set size -"nnoremap pv :NERDTreeFind :vertical resize 45 - -" NERDTree Syntax Highlight -" " Enables folder icon highlighting using exact match -let g:NERDTreeHighlightFolders = 1 -" " Highlights the folder name -let g:NERDTreeHighlightFoldersFullName = 1 -" " Color customization -let s:brown = "905532" -let s:aqua = "3AFFDB" -let s:blue = "689FB6" -let s:darkBlue = "44788E" -let s:purple = "834F79" -let s:lightPurple = "834F79" -let s:red = "AE403F" -let s:beige = "F5C06F" -let s:yellow = "F09F17" -let s:orange = "D4843E" -let s:darkOrange = "F16529" -let s:pink = "CB6F6F" -let s:salmon = "EE6E73" -let s:green = "8FAA54" -let s:lightGreen = "31B53E" -let s:white = "FFFFFF" -let s:rspec_red = 'FE405F' -let s:git_orange = 'F54D27' -" " This line is needed to avoid error -let g:NERDTreeExtensionHighlightColor = {} -" " Sets the color of css files to blue -let g:NERDTreeExtensionHighlightColor['css'] = s:blue -" " This line is needed to avoid error -let g:NERDTreeExactMatchHighlightColor = {} -" " Sets the color for .gitignore files -let g:NERDTreeExactMatchHighlightColor['.gitignore'] = s:git_orange -" " This line is needed to avoid error -let g:NERDTreePatternMatchHighlightColor = {} -" " Sets the color for files ending with _spec.rb -let g:NERDTreePatternMatchHighlightColor['.*_spec\.rb$'] = s:rspec_red -" " Sets the color for folders that did not match any rule -let g:WebDevIconsDefaultFolderSymbolColor = s:beige -" " Sets the color for files that did not match any rule -let g:WebDevIconsDefaultFileSymbolColor = s:blue - -" NERDTree Git Plugin -let g:NERDTreeGitStatusIndicatorMapCustom = { - \ "Modified" : "✹", - \ "Staged" : "✚", - \ "Untracked" : "✭", - \ "Renamed" : "➜", - \ "Unmerged" : "═", - \ "Deleted" : "✖", - \ "Dirty" : "✗", - \ "Clean" : "✔︎", - \ 'Ignored' : '☒', - \ "Unknown" : "?" - \ } -" }}} - -" SUPPRESS WARNINGS ----- {{{ -"autocmd VimEnter * unlet g:NERDTreeUpdateOnCursorHold -"autocmd VimEnter * unlet g:NERDTreeIndicatorMapCustom -" }}} - " fzf ----- {{{ " put search prompt at the top " let $FZF_DEFAULT_OPTS ='--reverse' From faa2c1d3f60f67c2a5bd401e10c10b46cfff7fca Mon Sep 17 00:00:00 2001 From: Prashantha T P Date: Fri, 10 Sep 2021 23:10:22 +0530 Subject: [PATCH 05/26] (feat) add lightline settings --- nvim/plugs/lightline_v1.vim | 28 +++++++++++++ nvim/plugs/lightline_v2.vim | 82 +++++++++++++++++++++++++++++++++++++ 2 files changed, 110 insertions(+) create mode 100644 nvim/plugs/lightline_v1.vim create mode 100644 nvim/plugs/lightline_v2.vim diff --git a/nvim/plugs/lightline_v1.vim b/nvim/plugs/lightline_v1.vim new file mode 100644 index 0000000..c976708 --- /dev/null +++ b/nvim/plugs/lightline_v1.vim @@ -0,0 +1,28 @@ +" lightline ----- {{{ +" Dependencies: +" + Fugitive +" + Gruvbox Material +" Lightline +let g:lightline = { + \ 'colorscheme': 'gruvbox', + \ 'active': { + \ 'left': [ [ 'mode', 'paste' ],['readonly', 'filename', 'modified','fugitive']], + \ 'right' : [['cocstatus', 'currentfunction'],['lineinfo'], ['percent'],['filetype','fileencoding']] + \ }, + \ 'component_function': { + \ 'cocstatus': 'coc#status', + \ 'currentfunction': 'CocCurrentFunction', + \ 'fugitive':'FugitiveGetBranchName' + \ }, + \ 'separator': { 'left': "\ue0b0", 'right': "\ue0b2" }, + \ 'subseparator': { 'left': "\ue0b1", 'right': "\ue0b3" } + \ } + +function! FugitiveGetBranchName() + " return fugitive#statusline() + let l:branchname = FugitiveHead() + return strlen(l:branchname)>0 ? "\uE0A0".FugitiveHead() : '' +endfunction +" }}} + + diff --git a/nvim/plugs/lightline_v2.vim b/nvim/plugs/lightline_v2.vim new file mode 100644 index 0000000..dd1cc19 --- /dev/null +++ b/nvim/plugs/lightline_v2.vim @@ -0,0 +1,82 @@ +"LIGHTLINE +"https://github.com/sainnhe/dotfiles/blob/0deab24ca971a6c226e54793285f0a194878de96/.config/nvim/features/full.vim#L10-L97 +let g:lightline = {} +let g:lightline.separator = { 'left': "\ue0b8", 'right': "\ue0be" } +let g:lightline.subseparator = { 'left': "\ue0b9", 'right': "\ue0b9" } +let g:lightline.tabline_separator = { 'left': "\ue0bc", 'right': "\ue0ba" } +let g:lightline.tabline_subseparator = { 'left': "\ue0bb", 'right': "\ue0bb" } +let g:lightline#asyncrun#indicator_none = '' +let g:lightline#asyncrun#indicator_run = 'Running...' +let g:vim_lightline_artify = 1 +if g:vim_lightline_artify == 0 + let g:lightline.active = { + \ 'left': [ [ 'mode', 'paste' ], + \ [ 'readonly', 'filename', 'modified', 'fileformat', 'devicons_filetype' ] ], + \ 'right': [ [ 'lineinfo' ], + \ [ 'linter_errors', 'linter_warnings', 'linter_ok', 'pomodoro' ], + \ [ 'asyncrun_status', 'coc_status' ] ] + \ } + let g:lightline.inactive = { + \ 'left': [ [ 'filename' , 'modified', 'fileformat', 'devicons_filetype' ]], + \ 'right': [ [ 'lineinfo' ] ] + \ } + let g:lightline.tabline = { + \ 'left': [ [ 'vim_logo', 'tabs' ] ], + \ 'right': [ [ 'git_global' ], + \ [ 'git_buffer' ] ] + \ } + let g:lightline.tab = { + \ 'active': [ 'tabnum', 'filename', 'modified' ], + \ 'inactive': [ 'tabnum', 'filename', 'modified' ] } +else + let g:lightline.active = { + \ 'left': [ [ 'paste' ], + \ [ 'readonly', 'filename', 'modified', 'fileformat', 'devicons_filetype' ] ], + \ 'right': [ [ 'linter_errors', 'linter_warnings', 'linter_ok', 'pomodoro' ], + \ [ 'asyncrun_status', 'coc_status' ] ] + \ } + let g:lightline.inactive = { + \ 'left': [ [ 'filename' , 'modified', 'fileformat', 'devicons_filetype' ]], + \ 'right': [ [ 'artify_lineinfo' ] ] + \ } + let g:lightline.tabline = { + \ 'left': [ [ 'vim_logo', 'tabs' ] ], + \ 'right': [ [ 'git_global' ], + \ [ 'git_buffer' ] ] + \ } + let g:lightline.tab = { + \ 'active': [ 'modified' ], + \ 'inactive': [ 'filename', 'modified' ] } +endif +let g:lightline.tab_component_function = { + \ 'tabnum': 'custom#lightline#tabnum', + \ 'filename': 'lightline#tab#filename', + \ 'modified': 'lightline#tab#modified', + \ 'readonly': 'lightline#tab#readonly' + \ } +let g:lightline.component = { + \ 'git_buffer' : '%{get(b:, "coc_git_status", "")}', + \ 'git_global' : '%{custom#lightline#git_global()}', + \ 'vim_logo': "\ue7c5", + \ 'mode': '%{lightline#mode()}', + \ 'filename': '%t', + \ 'fileformat': '%{&fenc!=#""?&fenc:&enc}[%{&ff}]', + \ 'modified': '%M', + \ 'paste': '%{&paste?"PASTE":""}', + \ 'readonly': '%R', + \ 'lineinfo': '%2p%% %3l:%-2v' + \ } +let g:lightline.component_function = { + \ 'devicons_filetype': 'custom#lightline#devicons', + \ 'coc_status': 'custom#lightline#coc_status' + \ } +let g:lightline.component_expand = { + \ 'linter_warnings': 'custom#lightline#coc_diagnostic_warning', + \ 'linter_errors': 'custom#lightline#coc_diagnostic_error', + \ 'linter_ok': 'custom#lightline#coc_diagnostic_ok', + \ } +let g:lightline.component_type = { + \ 'linter_warnings': 'warning', + \ 'linter_errors': 'error' + \ } +" }}} From 6c240d455a1fcf6b2e4f16c09416867c7765fa7a Mon Sep 17 00:00:00 2001 From: Prashantha T P Date: Fri, 10 Sep 2021 23:11:03 +0530 Subject: [PATCH 06/26] (plug) add telescope settings --- nvim/plugs/telescope_plug.vim | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 nvim/plugs/telescope_plug.vim diff --git a/nvim/plugs/telescope_plug.vim b/nvim/plugs/telescope_plug.vim new file mode 100644 index 0000000..c326133 --- /dev/null +++ b/nvim/plugs/telescope_plug.vim @@ -0,0 +1,6 @@ +" Find files using Telescope command-line sugar. +"https://github.com/nvim-telescope/telescope.nvim/issues/1144 +nnoremap ff Telescope find_files +nnoremap fg Telescope live_grep +nnoremap fb Telescope buffers +nnoremap fh Telescope help_tags From 219c312c6f3b7a30377c9ec1248ba5be1715de92 Mon Sep 17 00:00:00 2001 From: Prashantha T P Date: Fri, 10 Sep 2021 23:11:59 +0530 Subject: [PATCH 07/26] (plug) add vimwiki, nerdtree settings --- nvim/init.vim | 5 +++ nvim/plugs/nerdtree.vim | 74 +++++++++++++++++++++++++++++++++++++++++ nvim/plugs/vimwiki.vim | 17 ++++++++++ 3 files changed, 96 insertions(+) create mode 100644 nvim/plugs/nerdtree.vim create mode 100644 nvim/plugs/vimwiki.vim diff --git a/nvim/init.vim b/nvim/init.vim index 703c0da..66515ba 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -6,8 +6,10 @@ source $LOCALAPPDATA/nvim/general/colorscheme_settings.vim source $LOCALAPPDATA/nvim/plugs/coc.vim source $LOCALAPPDATA/nvim/plugs/lightline_v1.vim source $LOCALAPPDATA/nvim/plugs/telescope_plug.vim +source $LOCALAPPDATA/nvim/plugs/nerdtree.vim source $LOCALAPPDATA/nvim/plugs/firenvim.vim source $LOCALAPPDATA/nvim/plugs/markdown.vim +source $LOCALAPPDATA/nvim/plugs/vimwiki.vim source $LOCALAPPDATA/nvim/general/cursor.vim source $LOCALAPPDATA/nvim/general/general.vim @@ -18,6 +20,9 @@ source $LOCALAPPDATA/nvim/languages/languages.vim source $LOCALAPPDATA/nvim/general/git.vim +source $LOCALAPPDATA/nvim/helpers/commands.vim + + "set path+=** hi Normal ctermbg=none guibg=none hi Comment gui=italic cterm=italic diff --git a/nvim/plugs/nerdtree.vim b/nvim/plugs/nerdtree.vim new file mode 100644 index 0000000..75bcdfb --- /dev/null +++ b/nvim/plugs/nerdtree.vim @@ -0,0 +1,74 @@ +" NERDTree ----- {{{ +let g:NERDTreeShowHidden = 1 +let g:NERDTreeMinimalUI = 0 " hide helper +let g:NERDTreeIgnore = ['^node_modules$','\.git$', '\.idea$', '\.vscode$', '\.history$'] " ignore node_modules to increase load speed +"let g:NERDTreeStatusline = '' " set to empty to use lightline +" " Toggle +"noremap :NERDTreeToggle +nnoremap t :NERDTreeToggle +nnoremap y :NERDTreeFind :vertical resize 35 +" " Close window if NERDTree is the last one +autocmd BufEnter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif +" " Map to open current file in NERDTree and set size +"nnoremap pv :NERDTreeFind :vertical resize 45 + +" NERDTree Syntax Highlight +" " Enables folder icon highlighting using exact match +let g:NERDTreeHighlightFolders = 1 +" " Highlights the folder name +let g:NERDTreeHighlightFoldersFullName = 1 +" " Color customization +let s:brown = "905532" +let s:aqua = "3AFFDB" +let s:blue = "689FB6" +let s:darkBlue = "44788E" +let s:purple = "834F79" +let s:lightPurple = "834F79" +let s:red = "AE403F" +let s:beige = "F5C06F" +let s:yellow = "F09F17" +let s:orange = "D4843E" +let s:darkOrange = "F16529" +let s:pink = "CB6F6F" +let s:salmon = "EE6E73" +let s:green = "8FAA54" +let s:lightGreen = "31B53E" +let s:white = "FFFFFF" +let s:rspec_red = 'FE405F' +let s:git_orange = 'F54D27' +" " This line is needed to avoid error +let g:NERDTreeExtensionHighlightColor = {} +" " Sets the color of css files to blue +let g:NERDTreeExtensionHighlightColor['css'] = s:blue +" " This line is needed to avoid error +let g:NERDTreeExactMatchHighlightColor = {} +" " Sets the color for .gitignore files +let g:NERDTreeExactMatchHighlightColor['.gitignore'] = s:git_orange +" " This line is needed to avoid error +let g:NERDTreePatternMatchHighlightColor = {} +" " Sets the color for files ending with _spec.rb +let g:NERDTreePatternMatchHighlightColor['.*_spec\.rb$'] = s:rspec_red +" " Sets the color for folders that did not match any rule +let g:WebDevIconsDefaultFolderSymbolColor = s:beige +" " Sets the color for files that did not match any rule +let g:WebDevIconsDefaultFileSymbolColor = s:blue + +" NERDTree Git Plugin +let g:NERDTreeGitStatusIndicatorMapCustom = { + \ "Modified" : "✹", + \ "Staged" : "✚", + \ "Untracked" : "✭", + \ "Renamed" : "➜", + \ "Unmerged" : "═", + \ "Deleted" : "✖", + \ "Dirty" : "✗", + \ "Clean" : "✔︎", + \ 'Ignored' : '☒', + \ "Unknown" : "?" + \ } +" }}} + +" SUPPRESS WARNINGS ----- {{{ +"autocmd VimEnter * unlet g:NERDTreeUpdateOnCursorHold +"autocmd VimEnter * unlet g:NERDTreeIndicatorMapCustom +" }}} diff --git a/nvim/plugs/vimwiki.vim b/nvim/plugs/vimwiki.vim new file mode 100644 index 0000000..5cdaf6f --- /dev/null +++ b/nvim/plugs/vimwiki.vim @@ -0,0 +1,17 @@ +let s:vimwiki_root = "D:/dotfiles/wiki" +let g:vimwiki_list = [{ + \ 'path': s:vimwiki_root ."/vimwiki/", + \ 'path_html': s:vimwiki_root ."/vimwiki_html/content", + \ 'custom_wiki2html': s:vimwiki_root .'/wiki2html.py', + \ 'syntax': 'markdown', + \ 'ext': '.md', + \'template_default':'markdown', + \'template_path':s:vimwiki_root ."/template/" + \}] +let g:vimwiki_markdown_link_ext = 1 +let g:vimwiki_hl_headers = 1 +let g:vimwiki_hl_cb_checked = 1 +nmap wl VimwikiFollowLink +nnoremap wc :VimwikiAll2HTML +"use this to get back functionality in markdown files +let g:vimwiki_key_mappings = { 'table_mappings': 0 } From 60a033e03b3014b3493ea954cb3a0212e8f3a546 Mon Sep 17 00:00:00 2001 From: Prashantha T P Date: Fri, 10 Sep 2021 23:19:02 +0530 Subject: [PATCH 08/26] (util) add commands util file helper for inserting datetime string --- nvim/helpers/commands.vim | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 nvim/helpers/commands.vim diff --git a/nvim/helpers/commands.vim b/nvim/helpers/commands.vim new file mode 100644 index 0000000..cf7adaa --- /dev/null +++ b/nvim/helpers/commands.vim @@ -0,0 +1,9 @@ +function GET_DATE() + " let l:date = system('date | sed 1q') + " put =l:date + exe ":normal idate" + put =strftime(\"%b %d, %Y, %H:%M:%S\") +endfunction + +command! InsertDate call GET_DATE() + From 51703f3c2dbccf3bee5dced08bc8212d745d5ef7 Mon Sep 17 00:00:00 2001 From: Prashantha T P Date: Fri, 10 Sep 2021 23:36:53 +0530 Subject: [PATCH 09/26] (snippets) add c snippets --- nvim/ultisnips/c.snippets | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 nvim/ultisnips/c.snippets diff --git a/nvim/ultisnips/c.snippets b/nvim/ultisnips/c.snippets new file mode 100644 index 0000000..abd1e2a --- /dev/null +++ b/nvim/ultisnips/c.snippets @@ -0,0 +1,8 @@ +snippet cmain "c program template" b +#include +int main(){ + $1 + return 0; +} + +endsnippet From c1ed2468e5c1d75e4c2a742d0036d10a18a74138 Mon Sep 17 00:00:00 2001 From: Prashantha T P Date: Sat, 11 Sep 2021 16:18:48 +0530 Subject: [PATCH 10/26] (feat) add command for replacing with yanked text --- nvim/general/keybindings.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nvim/general/keybindings.vim b/nvim/general/keybindings.vim index 4091626..df0ef29 100644 --- a/nvim/general/keybindings.vim +++ b/nvim/general/keybindings.vim @@ -6,6 +6,10 @@ inoremap jk " yanking ----- {{{ "to match the behaviour of 'C' and 'D' nnoremap Y y$ +"replace with yanked word +"https://vim.fandom.com/wiki/Replace_a_word_with_yanked_text +nnoremap S "_diwP +vnoremap S "_d"0P "highlight the yanked area for an extened period augroup highlight_yank autocmd! From ac4ffe1c5b478b0cb6ef1a289ade83515b722f95 Mon Sep 17 00:00:00 2001 From: Prashantha T P Date: Sat, 11 Sep 2021 16:20:05 +0530 Subject: [PATCH 11/26] (feat) show full urls/links --- nvim/plugs/vimwiki.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nvim/plugs/vimwiki.vim b/nvim/plugs/vimwiki.vim index 5cdaf6f..bb51f77 100644 --- a/nvim/plugs/vimwiki.vim +++ b/nvim/plugs/vimwiki.vim @@ -15,3 +15,5 @@ nmap wl VimwikiFollowLink nnoremap wc :VimwikiAll2HTML "use this to get back functionality in markdown files let g:vimwiki_key_mappings = { 'table_mappings': 0 } +let g:vimwiki_url_maxsave=0 +let g:vimwiki_conceallevel=0 From d24c74408ed3438429e670c7e3df1414c1835892 Mon Sep 17 00:00:00 2001 From: Prashantha T P Date: Sat, 11 Sep 2021 16:21:05 +0530 Subject: [PATCH 12/26] (refactor) add seperate file each plugin use vimstartify --- nvim/init.vim | 18 ++++++++--- nvim/plugs/ale.vim | 11 +++++++ nvim/plugs/fzf.vim | 12 +++++++ nvim/plugs/nerdcommenter.vim | 17 ++++++++++ nvim/plugs/plugins.vim | 62 +----------------------------------- nvim/plugs/ultisnips.vim | 7 ++++ nvim/plugs/vimstartify.vim | 11 +++++++ 7 files changed, 73 insertions(+), 65 deletions(-) create mode 100644 nvim/plugs/ale.vim create mode 100644 nvim/plugs/fzf.vim create mode 100644 nvim/plugs/nerdcommenter.vim create mode 100644 nvim/plugs/ultisnips.vim create mode 100644 nvim/plugs/vimstartify.vim diff --git a/nvim/init.vim b/nvim/init.vim index 66515ba..dabd0bf 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -1,16 +1,26 @@ let mapleader = "\" source $LOCALAPPDATA/nvim/general/augroups.vim + +"=====================================================" +" plugins ----- {{{ source $LOCALAPPDATA/nvim/plugs/plugins.vim + source $LOCALAPPDATA/nvim/general/colorscheme_settings.vim + +source $LOCALAPPDATA/nvim/plugs/ale.vim source $LOCALAPPDATA/nvim/plugs/coc.vim -source $LOCALAPPDATA/nvim/plugs/lightline_v1.vim -source $LOCALAPPDATA/nvim/plugs/telescope_plug.vim -source $LOCALAPPDATA/nvim/plugs/nerdtree.vim source $LOCALAPPDATA/nvim/plugs/firenvim.vim +source $LOCALAPPDATA/nvim/plugs/fzf.vim +source $LOCALAPPDATA/nvim/plugs/lightline_v1.vim source $LOCALAPPDATA/nvim/plugs/markdown.vim +source $LOCALAPPDATA/nvim/plugs/nerdtree.vim +source $LOCALAPPDATA/nvim/plugs/telescope_plug.vim +source $LOCALAPPDATA/nvim/plugs/ultisnips.vim source $LOCALAPPDATA/nvim/plugs/vimwiki.vim - +source $LOCALAPPDATA/nvim/plugs/vimstartify.vim +" }}} +"=====================================================" source $LOCALAPPDATA/nvim/general/cursor.vim source $LOCALAPPDATA/nvim/general/general.vim source $LOCALAPPDATA/nvim/general/leader.vim diff --git a/nvim/plugs/ale.vim b/nvim/plugs/ale.vim new file mode 100644 index 0000000..d819226 --- /dev/null +++ b/nvim/plugs/ale.vim @@ -0,0 +1,11 @@ +" ALE ----- {{{ +" ALE (Asynchronous Lint Engine) +" let g:ale_fixers = { + " \ 'javascript': ['eslint'] + " \ } +" let g:ale_sign_error = '❌' +" let g:ale_sign_warning = '⚠️' +" let g:ale_fix_on_save = 1 + +" }}} + diff --git a/nvim/plugs/fzf.vim b/nvim/plugs/fzf.vim new file mode 100644 index 0000000..e6cbf5f --- /dev/null +++ b/nvim/plugs/fzf.vim @@ -0,0 +1,12 @@ +" fzf ----- {{{ +" put search prompt at the top +" let $FZF_DEFAULT_OPTS ='--reverse' +" nnoremap :Files +" let g:fzf_action = { + " \ 'ctrl-t': 'tab split', + " \ 'ctrl-s': 'split', + " \ 'ctrl-v': 'vsplit' + " \} +" }}} + + diff --git a/nvim/plugs/nerdcommenter.vim b/nvim/plugs/nerdcommenter.vim new file mode 100644 index 0000000..51d55f4 --- /dev/null +++ b/nvim/plugs/nerdcommenter.vim @@ -0,0 +1,17 @@ +" Nerd Commenter ----- {{{ +" " Use compact syntax for prettified multi-line comments +let g:NERDCompactSexyComs = 1 +" " Allow commenting and inverting empty lines (useful when commenting a region) +let g:NERDCommentEmptyLines = 1 +" " Enable trimming of trailing whitespace when uncommenting +let g:NERDTrimTrailingWhitespace = 1 +" " Enable NERDCommenterToggle to check all selected lines is commented or not +let g:NERDToggleCheckAllLines = 1 +" " Add spaces after comment delimiters by default +let g:NERDSpaceDelims = 1 +" " Map ++ to call NERD Commenter and use iTerm key bindings +" " to bind Ctmd+/ to ++ +vmap NERDCommenterToggle +nmap NERDCommenterToggle +" }}} + diff --git a/nvim/plugs/plugins.vim b/nvim/plugs/plugins.vim index 0f30a08..6d83d33 100644 --- a/nvim/plugs/plugins.vim +++ b/nvim/plugs/plugins.vim @@ -26,7 +26,7 @@ Plug 'tpope/vim-surround' Plug 'vimwiki/vimwiki' -"Plug 'mhinz/vim-startify' +Plug 'mhinz/vim-startify' "Plug 'jlanzarotta/bufexplorer' " If you have nodejs and yarn @@ -37,67 +37,7 @@ Plug 'vimwiki/vimwiki' " see: https://github.com/iamcco/markdown-preview.nvim/issues/50 Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']} - Plug 'glacambre/firenvim', { 'do': { _ -> firenvim#install(0) } } call plug#end() " }}} - -" UltiSnips ----- {{{ -" Trigger configuration. Do not use if you use https://github.com/Valloric/YouCompleteMe. -"let g:UltiSnipsExpandTrigger="" -let g:UltiSnipsExpandTrigger = '' "to aviod overlapping with coc mapping -"let g:UltiSnipsJumpForwardTrigger="" -"let g:UltiSnipsJumpBackwardTrigger="" -" }}} - -" fzf ----- {{{ -" put search prompt at the top -" let $FZF_DEFAULT_OPTS ='--reverse' -" nnoremap :Files -" let g:fzf_action = { - " \ 'ctrl-t': 'tab split', - " \ 'ctrl-s': 'split', - " \ 'ctrl-v': 'vsplit' - " \} -" }}} - -" Nerd Commenter ----- {{{ -" " Use compact syntax for prettified multi-line comments -let g:NERDCompactSexyComs = 1 -" " Allow commenting and inverting empty lines (useful when commenting a region) -let g:NERDCommentEmptyLines = 1 -" " Enable trimming of trailing whitespace when uncommenting -let g:NERDTrimTrailingWhitespace = 1 -" " Enable NERDCommenterToggle to check all selected lines is commented or not -let g:NERDToggleCheckAllLines = 1 -" " Add spaces after comment delimiters by default -let g:NERDSpaceDelims = 1 -" " Map ++ to call NERD Commenter and use iTerm key bindings -" " to bind Ctmd+/ to ++ -vmap NERDCommenterToggle -nmap NERDCommenterToggle -" }}} - -" ALE ----- {{{ -" ALE (Asynchronous Lint Engine) -" let g:ale_fixers = { - " \ 'javascript': ['eslint'] - " \ } -" let g:ale_sign_error = '❌' -" let g:ale_sign_warning = '⚠️' -" let g:ale_fix_on_save = 1 - -" }}} - -" vim-startify ----- {{{ -"let g:startify_custom_header += [ - ""\'████████╗██████╗ ██████╗ ', - ""\'╚══██╔══╝██╔══██╗██╔══██╗', - ""\' ██║ ██████╔╝██████╔╝', - "" \' ██║ ██╔═══╝ ██╔═══╝ ', - """"\' ██║ ██║ ██║ ', - ""\' ╚═╝ ╚═╝ ╚═╝ ', - ""\] - ""\ startify#pad(split(system('figlet -w 100 TPP'), \n)) -" }}} diff --git a/nvim/plugs/ultisnips.vim b/nvim/plugs/ultisnips.vim new file mode 100644 index 0000000..2bab9f9 --- /dev/null +++ b/nvim/plugs/ultisnips.vim @@ -0,0 +1,7 @@ +" UltiSnips ----- {{{ +" Trigger configuration. Do not use if you use https://github.com/Valloric/YouCompleteMe. +"let g:UltiSnipsExpandTrigger="" +let g:UltiSnipsExpandTrigger = '' "to aviod overlapping with coc mapping +"let g:UltiSnipsJumpForwardTrigger="" +"let g:UltiSnipsJumpBackwardTrigger="" +" }}} diff --git a/nvim/plugs/vimstartify.vim b/nvim/plugs/vimstartify.vim new file mode 100644 index 0000000..dc2cd06 --- /dev/null +++ b/nvim/plugs/vimstartify.vim @@ -0,0 +1,11 @@ +" vim-startify ----- {{{ +"let g:startify_custom_header += [ + ""\'████████╗██████╗ ██████╗ ', + ""\'╚══██╔══╝██╔══██╗██╔══██╗', + ""\' ██║ ██████╔╝██████╔╝', + "" \' ██║ ██╔═══╝ ██╔═══╝ ', + """"\' ██║ ██║ ██║ ', + ""\' ╚═╝ ╚═╝ ╚═╝ ', + ""\] + ""\ startify#pad(split(system('figlet -w 100 TPP'), \n)) +" }}} From a11584ac243aee59194f52fc39ee8fc11f5eb8f1 Mon Sep 17 00:00:00 2001 From: Prashantha T P Date: Sat, 11 Sep 2021 17:59:39 +0530 Subject: [PATCH 13/26] (feat) add goyo plugin --- nvim/init.vim | 1 + nvim/plugs/goyo.vim | 27 +++++++++++++++++ nvim/plugs/plugins.vim | 69 +++++++++++++++++++++--------------------- 3 files changed, 63 insertions(+), 34 deletions(-) create mode 100644 nvim/plugs/goyo.vim diff --git a/nvim/init.vim b/nvim/init.vim index dabd0bf..557e020 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -12,6 +12,7 @@ source $LOCALAPPDATA/nvim/plugs/ale.vim source $LOCALAPPDATA/nvim/plugs/coc.vim source $LOCALAPPDATA/nvim/plugs/firenvim.vim source $LOCALAPPDATA/nvim/plugs/fzf.vim +source $LOCALAPPDATA/nvim/plugs/goyo.vim source $LOCALAPPDATA/nvim/plugs/lightline_v1.vim source $LOCALAPPDATA/nvim/plugs/markdown.vim source $LOCALAPPDATA/nvim/plugs/nerdtree.vim diff --git a/nvim/plugs/goyo.vim b/nvim/plugs/goyo.vim new file mode 100644 index 0000000..0bb3397 --- /dev/null +++ b/nvim/plugs/goyo.vim @@ -0,0 +1,27 @@ +function! s:goyo_enter() + if executable('tmux') && strlen($TMUX) + silent !tmux set status off + silent !tmux list-panes -F '\#F' | grep -q Z || tmux resize-pane -Z + endif + set noshowmode + set noshowcmd + set scrolloff=999 +" Limelight + " ... +endfunction + +function! s:goyo_leave() + if executable('tmux') && strlen($TMUX) + silent !tmux set status on + silent !tmux list-panes -F '\#F' | grep -q Z && tmux resize-pane -Z + endif + set showmode + set showcmd + set scrolloff=5 +" Limelight! + " ... +endfunction + +autocmd! User GoyoEnter nested call goyo_enter() +autocmd! User GoyoLeave nested call goyo_leave() + diff --git a/nvim/plugs/plugins.vim b/nvim/plugs/plugins.vim index 6d83d33..e4e5779 100644 --- a/nvim/plugs/plugins.vim +++ b/nvim/plugs/plugins.vim @@ -1,43 +1,44 @@ " plugins ----- {{{ call plug#begin("$VIM/nvim/plugged") -"https://github.com/junegunn/vim-plug#plug-options -Plug 'morhetz/gruvbox' -"Plug 'sainnhe/gruvbox-material' -" NERD tree will be loaded on the first invocation of NERDTreeToggle command" -Plug 'preservim/nerdtree',{ 'on': 'NERDTreeToggle'} -Plug 'tiagofumo/vim-nerdtree-syntax-highlight' -Plug 'tpope/vim-fugitive' -Plug 'tpope/vim-commentary' -Plug 'ryanoasis/vim-devicons' -" Track the engine. -Plug 'SirVer/ultisnips' -" Snippets are separated from the engine. Add this if you want them: -Plug 'honza/vim-snippets' -"Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } -"Plug 'junegunn/fzf.vim' -Plug 'nvim-lua/plenary.nvim' -Plug 'nvim-telescope/telescope.nvim' -Plug 'neoclide/coc.nvim', {'branch': 'release'} -"Plug 'w0rp/ale' -Plug 'sheerun/vim-polyglot' -Plug 'itchyny/lightline.vim' -"Plug 'preservim/nerdcommenter' -Plug 'tpope/vim-surround' + "https://github.com/junegunn/vim-plug#plug-options + Plug 'morhetz/gruvbox' + "Plug 'sainnhe/gruvbox-material' + " NERD tree will be loaded on the first invocation of NERDTreeToggle command" + Plug 'preservim/nerdtree',{ 'on': 'NERDTreeToggle'} + Plug 'tiagofumo/vim-nerdtree-syntax-highlight' + Plug 'tpope/vim-fugitive' + Plug 'tpope/vim-commentary' + Plug 'ryanoasis/vim-devicons' + " Track the engine. + Plug 'SirVer/ultisnips' + " Snippets are separated from the engine. Add this if you want them: + Plug 'honza/vim-snippets' + "Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } + "Plug 'junegunn/fzf.vim' + Plug 'nvim-lua/plenary.nvim' + Plug 'nvim-telescope/telescope.nvim' + Plug 'neoclide/coc.nvim', {'branch': 'release'} + "Plug 'w0rp/ale' + Plug 'sheerun/vim-polyglot' + Plug 'itchyny/lightline.vim' + "Plug 'preservim/nerdcommenter' + Plug 'tpope/vim-surround' -Plug 'vimwiki/vimwiki' + Plug 'vimwiki/vimwiki' -Plug 'mhinz/vim-startify' + Plug 'mhinz/vim-startify' -"Plug 'jlanzarotta/bufexplorer' -" If you have nodejs and yarn -"Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app && yarn install' } -" -" If you don't have nodejs and yarn -" use pre build, add 'vim-plug' to the filetype list so vim-plug can update this plugin -" see: https://github.com/iamcco/markdown-preview.nvim/issues/50 -Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']} + "Plug 'jlanzarotta/bufexplorer' + " If you have nodejs and yarn + "Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app && yarn install' } + " + " If you don't have nodejs and yarn + " use pre build, add 'vim-plug' to the filetype list so vim-plug can update this plugin + " see: https://github.com/iamcco/markdown-preview.nvim/issues/50 + Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']} -Plug 'glacambre/firenvim', { 'do': { _ -> firenvim#install(0) } } + Plug 'glacambre/firenvim', { 'do': { _ -> firenvim#install(0) } } + Plug 'junegunn/goyo.vim' call plug#end() " }}} From 68606675e71771541195f570fbd57958194557d7 Mon Sep 17 00:00:00 2001 From: Prashantha T P Date: Sat, 25 Sep 2021 12:04:04 +0530 Subject: [PATCH 14/26] (chore) add gruvbox settings --- nvim/general/colorscheme_settings.vim | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nvim/general/colorscheme_settings.vim b/nvim/general/colorscheme_settings.vim index c973fc8..07c623f 100644 --- a/nvim/general/colorscheme_settings.vim +++ b/nvim/general/colorscheme_settings.vim @@ -4,6 +4,7 @@ if (has("termguicolors")) set termguicolors endif set background=dark +set t_Co=256 " colorscheme gruvbox " au Colorscheme gruvbox :hi Keyword gui=italic cterm=italic "https://github.com/sainnhe/gruvbox-material/blob/master/doc/gruvbox-material.txt @@ -18,6 +19,12 @@ let g:gruvbox_material_better_performance = 1 "configuration must be dont before applying colorscheme " "if &filetype!='gitcommit' +let g:gruvbox_contrast_dark="hard" +let g:gruvbox_bold=1 +let g:gruvbox_italic=1 + + + colorscheme gruvbox "endif From 2f5de519bf7a9b10d59a6c847ed5866893351272 Mon Sep 17 00:00:00 2001 From: Prashantha T P Date: Sat, 25 Sep 2021 12:07:42 +0530 Subject: [PATCH 15/26] (chore) add git difftool settings --- nvim/general/git.vim | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/nvim/general/git.vim b/nvim/general/git.vim index 6676078..21933b4 100644 --- a/nvim/general/git.vim +++ b/nvim/general/git.vim @@ -7,15 +7,17 @@ endfunction if &diff set nornu "https://stackoverflow.com/questions/2019281/load-different-colorscheme-when-using-vimdiff - " highlight! DiffAdd cterm=bold ctermfg=10 ctermbg=17 gui=none guifg=bg guibg=Red - " highlight! DiffDelete cterm=bold ctermfg=10 ctermbg=17 gui=none guifg=bg guibg=Red - " highlight! DiffChange cterm=bold ctermfg=10 ctermbg=17 gui=none guifg=bg guibg=Red - " highlight! DiffText cterm=bold ctermfg=10 ctermbg=88 gui=none guifg=bg guibg=Red + highlight! DiffAdd cterm=bold ctermfg=10 ctermbg=17 gui=none guifg=bg guibg=Red + highlight! DiffDelete cterm=bold ctermfg=10 ctermbg=17 gui=none guifg=bg guibg=Red + highlight! DiffChange cterm=bold ctermfg=10 ctermbg=17 gui=none guifg=bg guibg=Red + highlight! DiffText cterm=bold ctermfg=10 ctermbg=88 gui=none guifg=bg guibg=Red " Fix the difficult-to-read default setting for diff text highlighting. The " bang (!) is required since we are overwriting the DiffText setting. The highlighting " for \"Todo" also looks nice (yellow) if you don't like the \"MatchParen" colors. highlight! link DiffText MatchParen - + "no transperant bg : set to default colors from gruvbox" + "found out using :hi Normal + highlight! Normal ctermfg=223 ctermbg=235 guifg=#ebdbb2 guibg=#282828 :call Set_git_settings() endif From 488f783daefea8f7eb3f3069696ad39e133513e2 Mon Sep 17 00:00:00 2001 From: Prashantha T P Date: Sat, 25 Sep 2021 12:08:54 +0530 Subject: [PATCH 16/26] (plugins) add plugin settings --- nvim/plugs/fzf.vim | 4 ++-- nvim/plugs/lightline_v1.vim | 2 +- nvim/plugs/markdown.vim | 2 +- nvim/plugs/plugins.vim | 23 +++++++++-------------- nvim/plugs/telescope_plug.vim | 6 +++++- nvim/plugs/vimwiki.vim | 5 ++++- 6 files changed, 22 insertions(+), 20 deletions(-) diff --git a/nvim/plugs/fzf.vim b/nvim/plugs/fzf.vim index e6cbf5f..55d5ded 100644 --- a/nvim/plugs/fzf.vim +++ b/nvim/plugs/fzf.vim @@ -1,7 +1,7 @@ " fzf ----- {{{ " put search prompt at the top -" let $FZF_DEFAULT_OPTS ='--reverse' -" nnoremap :Files + let $FZF_DEFAULT_OPTS ='--reverse' + nnoremap :Files " let g:fzf_action = { " \ 'ctrl-t': 'tab split', " \ 'ctrl-s': 'split', diff --git a/nvim/plugs/lightline_v1.vim b/nvim/plugs/lightline_v1.vim index c976708..1734d14 100644 --- a/nvim/plugs/lightline_v1.vim +++ b/nvim/plugs/lightline_v1.vim @@ -6,7 +6,7 @@ let g:lightline = { \ 'colorscheme': 'gruvbox', \ 'active': { - \ 'left': [ [ 'mode', 'paste' ],['readonly', 'filename', 'modified','fugitive']], + \ 'left': [ [ 'mode', 'paste' ],['readonly', 'modified','fugitive']], \ 'right' : [['cocstatus', 'currentfunction'],['lineinfo'], ['percent'],['filetype','fileencoding']] \ }, \ 'component_function': { diff --git a/nvim/plugs/markdown.vim b/nvim/plugs/markdown.vim index e9610fa..43fa0c6 100644 --- a/nvim/plugs/markdown.vim +++ b/nvim/plugs/markdown.vim @@ -11,7 +11,7 @@ let g:mkdp_auto_close = 1 " leave from insert mode, default 0 is auto refresh markdown as you edit or " move the cursor " default: 0 -let g:mkdp_refresh_slow = 0 +let g:mkdp_refresh_slow = 1 " set to 1, the MarkdownPreview command can be use for all files, " by default it can be use in markdown file diff --git a/nvim/plugs/plugins.vim b/nvim/plugs/plugins.vim index e4e5779..0adc67c 100644 --- a/nvim/plugs/plugins.vim +++ b/nvim/plugs/plugins.vim @@ -4,34 +4,29 @@ call plug#begin("$VIM/nvim/plugged") Plug 'morhetz/gruvbox' "Plug 'sainnhe/gruvbox-material' " NERD tree will be loaded on the first invocation of NERDTreeToggle command" - Plug 'preservim/nerdtree',{ 'on': 'NERDTreeToggle'} - Plug 'tiagofumo/vim-nerdtree-syntax-highlight' + "Plug 'preservim/nerdtree',{ 'on': 'NERDTreeToggle'} + "Plug 'tiagofumo/vim-nerdtree-syntax-highlight' Plug 'tpope/vim-fugitive' Plug 'tpope/vim-commentary' - Plug 'ryanoasis/vim-devicons' + "Plug 'ryanoasis/vim-devicons' " Track the engine. Plug 'SirVer/ultisnips' " Snippets are separated from the engine. Add this if you want them: Plug 'honza/vim-snippets' - "Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } - "Plug 'junegunn/fzf.vim' - Plug 'nvim-lua/plenary.nvim' - Plug 'nvim-telescope/telescope.nvim' + Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } + Plug 'junegunn/fzf.vim' + "Plug 'nvim-lua/plenary.nvim' + "Plug 'nvim-telescope/telescope.nvim' Plug 'neoclide/coc.nvim', {'branch': 'release'} "Plug 'w0rp/ale' - Plug 'sheerun/vim-polyglot' + "Plug 'sheerun/vim-polyglot' Plug 'itchyny/lightline.vim' "Plug 'preservim/nerdcommenter' Plug 'tpope/vim-surround' Plug 'vimwiki/vimwiki' - + Plug 'mzlogin/vim-markdown-toc' Plug 'mhinz/vim-startify' - - "Plug 'jlanzarotta/bufexplorer' - " If you have nodejs and yarn - "Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app && yarn install' } - " " If you don't have nodejs and yarn " use pre build, add 'vim-plug' to the filetype list so vim-plug can update this plugin " see: https://github.com/iamcco/markdown-preview.nvim/issues/50 diff --git a/nvim/plugs/telescope_plug.vim b/nvim/plugs/telescope_plug.vim index c326133..f33f4f6 100644 --- a/nvim/plugs/telescope_plug.vim +++ b/nvim/plugs/telescope_plug.vim @@ -1,6 +1,10 @@ " Find files using Telescope command-line sugar. "https://github.com/nvim-telescope/telescope.nvim/issues/1144 nnoremap ff Telescope find_files -nnoremap fg Telescope live_grep +nnoremap fg Telescope git_files +nnoremap fl Telescope live_grep nnoremap fb Telescope buffers nnoremap fh Telescope help_tags + +lua << EOF require('telescope').setup{ defaults = { vimgrep_arguments = { 'rg', '--color=never', '--no-heading', '--with-filename', '--line-number', '--column', '--smart-case', '--ignore-file', '.gitignore' }}} + diff --git a/nvim/plugs/vimwiki.vim b/nvim/plugs/vimwiki.vim index bb51f77..80219c6 100644 --- a/nvim/plugs/vimwiki.vim +++ b/nvim/plugs/vimwiki.vim @@ -6,7 +6,10 @@ let g:vimwiki_list = [{ \ 'syntax': 'markdown', \ 'ext': '.md', \'template_default':'markdown', - \'template_path':s:vimwiki_root ."/template/" + \'template_path':s:vimwiki_root ."/template/", + \ 'links_space_char': '_', + \'diary_rel_path' : './diary', + \ 'markdown_toc' : 1 \}] let g:vimwiki_markdown_link_ext = 1 let g:vimwiki_hl_headers = 1 From e0f075c5e8bf5bf244272064ee73d75732d69ac1 Mon Sep 17 00:00:00 2001 From: Prashantha T P Date: Sat, 25 Sep 2021 12:09:28 +0530 Subject: [PATCH 17/26] (chore) add pandoc helper function --- nvim/helpers/commands.vim | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/nvim/helpers/commands.vim b/nvim/helpers/commands.vim index cf7adaa..4631fdc 100644 --- a/nvim/helpers/commands.vim +++ b/nvim/helpers/commands.vim @@ -7,3 +7,20 @@ endfunction command! InsertDate call GET_DATE() +function s:MD2PDF() + " use &filetype" + if expand("%:e")!="md" + return + endif + "silent! :call system("pandoc ") + execute "!pandoc \"".expand("%:p"). + \"\" -o ".expand("%:r").".pdf" + echomsg "Pdf conversion successful!" +endfunction + +augroup PANDOC + autocmd! +" command! Pandoc silent! :!pandoc % -o %:r.pdf + command! Pandoc :call MD2PDF() + +augroup end From e96f507ce300e14c5facc3448202b047d9d56222 Mon Sep 17 00:00:00 2001 From: Prashantha T P Date: Sat, 25 Sep 2021 12:11:27 +0530 Subject: [PATCH 18/26] (chore) add curdir,conceallevel,tabline,lazyredraw settings --- nvim/general/general.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nvim/general/general.vim b/nvim/general/general.vim index 259b54d..f9f0445 100644 --- a/nvim/general/general.vim +++ b/nvim/general/general.vim @@ -11,12 +11,14 @@ set backspace=indent,eol,start "send it to The blackhole-register nnoremap x "_x -set autochdir +"set autochdir " }}} " EDITOR ----- {{{ syntax on +set conceallevel=0 + " filetype on " filetype plugin on " filetype indent on @@ -28,6 +30,8 @@ set softtabstop=4 set shiftwidth=4 set number relativenumber set scrolloff=8 +set showtabline=2 +set lazyredraw "set colorcolumn=80 " Show white spaces https://gist.github.com/jdavid82/d40f40e6f124aad6223eba0ff0c7ad65#file-vimrc-L37-L39 "set listchars=tab:>·,trail:~,extends:>,precedes:<,space:· From 649108d7d48c5bf49144ebb97f82fd7da0c9daee Mon Sep 17 00:00:00 2001 From: Prashantha T P Date: Sun, 3 Oct 2021 10:13:51 +0530 Subject: [PATCH 19/26] (feat) add Powershell Profile warning : has hardcoded paths --- .../Microsoft.PowerShell_profile.ps1 | 120 ++++++++++++++++++ 1 file changed, 120 insertions(+) create mode 100644 Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1 diff --git a/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1 b/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1 new file mode 100644 index 0000000..2c2284a --- /dev/null +++ b/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1 @@ -0,0 +1,120 @@ +# Import-Module posh-git +# Import-Module oh-my-posh +# Set-PoshPrompt -Theme paradox +#Invoke-Expression (oh-my-posh --init --shell pwsh --config "C://Users//Prashanth T P//Documents//WindowsPowerShell//my_custom_config_oh_my_posh.omp.json") +# Invoke-Expression (oh-my-posh --init --shell pwsh --config "$(scoop prefix oh-my-posh)//themes//jandedobbeleer.omp.json") +#nvoke-Expression (oh-my-posh --init --shell pwsh --config "$(scoop prefix oh-my-posh)//themes//paradox.omp.json") + + #Invoke-Expression (oh-my-posh --init --shell pwsh --config "$(scoop prefix oh-my-posh)//themes//avit.omp.json") +Invoke-Expression (oh-my-posh --init --shell pwsh --config "C://Users//Prashanth T P//Documents//WindowsPowerShell//negligible_custom.omp.json") + + +$env:LC_ALL='C.UTF-8' +#$env:TERM='xterm-256color' +function configfiles_fn{ + git --git-dir=D:/dotfiles/dotfiles --work-tree=$env:LOCALAPPDATA $args + } +set-alias -name configfiles -value configfiles_fn +########################################################################## +# vi mode +# https://docs.microsoft.com/en-us/powershell/module/psreadline/set-psreadlineoption?view=powershell-5.1 +# +$PSReadLineOptions = @{ + EditMode = "Vi" + HistoryNoDuplicates = $true + HistorySearchCursorMovesToEnd = $true + Colors = @{ + "Command" = "#8181f7" + } +} +Set-PSReadLineOption -Colors @{ + Command = 'Magenta' + Number = 'DarkGray' + Member = 'DarkGray' + Operator = 'DarkGray' + Type = 'DarkGray' + Variable = 'DarkGreen' + Parameter = 'DarkGreen' + ContinuationPrompt = 'DarkGray' + Default = 'DarkGray' +} +Set-PSReadLineOption @PSReadLineOptions +function OnViModeChange { + if ($args[0] -eq 'Command') { + # Set the cursor to a blinking block. + # Write-Host "`e[1 q" + Write-Host -NoNewLine "$([char]0x1b)[1 q" + } else { + # Set the cursor to a blinking line. + # Write-Host -NewLine "`e[5 q" + Write-Host -NoNewLine "$([char]0x1b)[5 q" + } +} + +Set-PSReadLineOption -ViModeIndicator Script -ViModeChangeHandler $Function:OnViModeChange +#https://stackoverflow.com/questions/39547321/rebind-escape-in-psreadline-for-vi-mode +# Set-PSReadLineKeyHandler -vimode insert -Chord "k" -ScriptBlock { mapTwoLetterNormal 'k' 'j' } +#Set-PSReadLineKeyHandler -vimode insert -Chord "j" -ScriptBlock { mapTwoLetterNormal 'j' 'k' } +# +##########################################################################3 +# +#https://github.com/PowerShell/PSReadLine/issues/759 +#this method prevents enabling numlock +Set-PSReadLineKeyHandler -Chord 'j' -ScriptBlock { + if ([Microsoft.PowerShell.PSConsoleReadLine]::InViInsertMode()) { + $key = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown") + if ($key.Character -eq 'k') { + [Microsoft.PowerShell.PSConsoleReadLine]::ViCommandMode() + } + else { + [Microsoft.Powershell.PSConsoleReadLine]::Insert('j') + [Microsoft.Powershell.PSConsoleReadLine]::Insert($key.Character) + } + } +} +##########################################################################3 +function mapTwoLetterNormal($a, $b){ + mapTwoLetterFunc $a $b -func $function:setViCommandMode +} +function setViCommandMode{ + [Microsoft.PowerShell.PSConsoleReadLine]::ViCommandMode() +} + +function mapTwoLetterFunc($a,$b,$func) { + if ([Microsoft.PowerShell.PSConsoleReadLine]::InViInsertMode()) { + $key = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown") + if ($key.Character -eq $b) { + &$func + } else { + [Microsoft.Powershell.PSConsoleReadLine]::Insert("$a") + # Representation of modifiers (like shift) when ReadKey uses IncludeKeyDown + if ($key.Character -eq 0x00) { + return + } else { + # Insert func above converts escape characters to their literals, e.g. + # converts return to ^M. This doesn't. + $wshell = New-Object -ComObject wscript.shell + $wshell.SendKeys("{$($key.Character)}") + } + } + } +} + + +# Bonus example +function replaceWithExit { + [Microsoft.PowerShell.PSConsoleReadLine]::BackwardKillLine() + [Microsoft.PowerShell.PSConsoleReadLine]::KillLine() + [Microsoft.PowerShell.PSConsoleReadLine]::Insert('exit') +} +#Set-PSReadLineKeyHandler -Chord ";" -ScriptBlock { mapTwoLetterFunc ';' 'q' -func $function:replaceWithExit } + +############################################ +function wikifiles_fn{ + git --git-dir=D:/dotfiles/wiki/vimwiki/.git --work-tree=D:/dotfiles/wiki/vimwiki $args + } + +set-alias -name wikifiles -value wikifiles_fn +############################################ +# Windows terminal settings +$wtsettings = (Get-ChildItem "$env:LOCALAPPDATA\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState" -Filter settings.json).FullName From f008df0a0b4f1b406f38d5222c3c852bd0cdba84 Mon Sep 17 00:00:00 2001 From: Prashantha T P Date: Sun, 3 Oct 2021 10:16:26 +0530 Subject: [PATCH 20/26] (feat) add bashrc and inputrc --- .bashrc | 20 ++++++++++++++++++++ .inputrc | 21 +++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 .bashrc create mode 100644 .inputrc diff --git a/.bashrc b/.bashrc new file mode 100644 index 0000000..e1d49cb --- /dev/null +++ b/.bashrc @@ -0,0 +1,20 @@ +# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) +export TERM=xterm-256color +VISUAL=nvim +EDITOR=nvim +HISTSIZE=1000 +HISTFILESIZE=2000 +parse_git_branch() { + git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' +} + +# export PS1="\u@\h \[\e[32m\]\w \[\e[91m\]\$(parse_git_branch)\[\e[00m\]$ " +#export PS1="\[\033[35m\]\u@\[\033[32m\]\h \[\033[33m\]\w \[\033[91m\]\$(parse_git_branch)\[\033[00m\]$ " +# PROMPT_COMMAND='echo -e "\e[?16;0;200c"' +alias configfiles='git --git-dir="D:\dotfiles\dotfiles" --work-tree="$LOCALAPPDATA"' +################################################################################################################ + export PS1='\[\033[0;32m\]\[\033[0m\033[0;32m\]\u\[\033[0;36m\] @ \w\[\033[0;32m\]$(if git rev-parse --git-dir > /dev/null 2>&1; then echo " - ["; fi)$(git branch 2>/dev/null | grep "^*" | colrm 1 2)\[\033[0;32m\]$(if git rev-parse --git-dir > /dev/null 2>&1; then echo "]"; fi)\[\033[0m\033[0;32m\] \$\[\033[0m\033[0;32m\]\[\033[0m\] ' +# export PS1="\[\e[0;32m\]\[\e[0m\]\[\e[0;32m\]\u\[\e[0;36m\] @ \[\033[0;36m\]\h \w\[\033[0;32m\] $(parse_git_branch)\n\[\033[0;32m\]└─\[\033[0m\]\[\033[0;32m\] \$\[\033[0m\]\[\033[0;32m\] ▶\[\033[0m\] " +############################################################################# +#https://gist.github.com/justintv/168835#gistcomment-2711710 + diff --git a/.inputrc b/.inputrc new file mode 100644 index 0000000..4cb1f5a --- /dev/null +++ b/.inputrc @@ -0,0 +1,21 @@ +# set TERM=xterm-256color +set colored-stats On +# Append char to indicate type +set visible-stats On +#set EDITOR=nvim +set completion-ignore-case on +set bell-style none +set editing-mode vi +set show-mode-in-prompt on +# $if term="linux" + # set vi-ins-mode-string \1\e[?0c\2 + # set vi-cmd-mode-string \1\e[?8c\2 +# $else + set vi-ins-mode-string "\1\e[6 q\2" +# set vi-cmd-mode-string "\1\e[2 q\2 cmd" +#set vi-cmd-mode-string \1\e[0 q\2 +# $endif + +set keymap vi-insert +"jk": vi-movement-mode + From f24d635c1e7c69892b83402b08ef53390fe7359c Mon Sep 17 00:00:00 2001 From: Prashantha T P Date: Sun, 3 Oct 2021 10:29:39 +0530 Subject: [PATCH 21/26] (docs) update warnings --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 4c7976d..0971857 100644 --- a/README.md +++ b/README.md @@ -17,3 +17,8 @@ My favourites - Operator Mono - Fira Code - Source Code Pro + + +## Warnings ⚠ + +- Powershell profile has hardcoded paths.Please verify once before using it. From e3d17a03fb1487b86542fd141551a8092922da0d Mon Sep 17 00:00:00 2001 From: Prashantha T P Date: Sat, 9 Oct 2021 11:48:04 +0530 Subject: [PATCH 22/26] (chore) add vi-cmd-mode-string --- .inputrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.inputrc b/.inputrc index 4cb1f5a..53eb1dc 100644 --- a/.inputrc +++ b/.inputrc @@ -12,7 +12,7 @@ set show-mode-in-prompt on # set vi-cmd-mode-string \1\e[?8c\2 # $else set vi-ins-mode-string "\1\e[6 q\2" -# set vi-cmd-mode-string "\1\e[2 q\2 cmd" +set vi-cmd-mode-string "\1\e[2 q\2" #set vi-cmd-mode-string \1\e[0 q\2 # $endif From 805d36647ec094ff5ff97900910b582344bfaae0 Mon Sep 17 00:00:00 2001 From: Prashantha T P Date: Sat, 9 Oct 2021 11:48:44 +0530 Subject: [PATCH 23/26] (chore) remove custom PS1 --- .bashrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index e1d49cb..47e4ab7 100644 --- a/.bashrc +++ b/.bashrc @@ -1,5 +1,5 @@ # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) -export TERM=xterm-256color +#export TERM=xterm-256color VISUAL=nvim EDITOR=nvim HISTSIZE=1000 @@ -13,7 +13,7 @@ parse_git_branch() { # PROMPT_COMMAND='echo -e "\e[?16;0;200c"' alias configfiles='git --git-dir="D:\dotfiles\dotfiles" --work-tree="$LOCALAPPDATA"' ################################################################################################################ - export PS1='\[\033[0;32m\]\[\033[0m\033[0;32m\]\u\[\033[0;36m\] @ \w\[\033[0;32m\]$(if git rev-parse --git-dir > /dev/null 2>&1; then echo " - ["; fi)$(git branch 2>/dev/null | grep "^*" | colrm 1 2)\[\033[0;32m\]$(if git rev-parse --git-dir > /dev/null 2>&1; then echo "]"; fi)\[\033[0m\033[0;32m\] \$\[\033[0m\033[0;32m\]\[\033[0m\] ' +# export PS1='\[\033[0;32m\]\[\033[0m\033[0;32m\]\u\[\033[0;36m\] @ \w\[\033[0;32m\]$(if git rev-parse --git-dir > /dev/null 2>&1; then echo " - ["; fi)$(git branch 2>/dev/null | grep "^*" )\[\033[0;32m\]$(if git rev-parse --git-dir > /dev/null 2>&1; then echo "]"; fi)\[\033[0m\033[0;32m\] \$\[\033[0m\033[0;32m\]\[\033[0m\] ' # export PS1="\[\e[0;32m\]\[\e[0m\]\[\e[0;32m\]\u\[\e[0;36m\] @ \[\033[0;36m\]\h \w\[\033[0;32m\] $(parse_git_branch)\n\[\033[0;32m\]└─\[\033[0m\]\[\033[0;32m\] \$\[\033[0m\]\[\033[0;32m\] ▶\[\033[0m\] " ############################################################################# #https://gist.github.com/justintv/168835#gistcomment-2711710 From fb858a0f4f1d4952ae5c5728eec4cb5c3485923b Mon Sep 17 00:00:00 2001 From: Prashantha T P Date: Sat, 9 Oct 2021 11:52:49 +0530 Subject: [PATCH 24/26] (chore) some tweaks --- nvim/general/colorscheme_settings.vim | 3 +-- nvim/general/general.vim | 2 +- nvim/init.vim | 9 ++++++--- nvim/plugs/plugins.vim | 8 +++++--- 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/nvim/general/colorscheme_settings.vim b/nvim/general/colorscheme_settings.vim index 07c623f..7f45291 100644 --- a/nvim/general/colorscheme_settings.vim +++ b/nvim/general/colorscheme_settings.vim @@ -23,10 +23,9 @@ let g:gruvbox_contrast_dark="hard" let g:gruvbox_bold=1 let g:gruvbox_italic=1 - - colorscheme gruvbox "endif " }}} +" diff --git a/nvim/general/general.vim b/nvim/general/general.vim index f9f0445..6eee611 100644 --- a/nvim/general/general.vim +++ b/nvim/general/general.vim @@ -40,8 +40,8 @@ set lazyredraw " " SEARCHING ----- {{{ -set nohlsearch set incsearch "on by default" +set nohlsearch " clear last used search pattern:http://vimdoc.sourceforge.net/htmldoc/pattern.html#last-pattern " let @/="" diff --git a/nvim/init.vim b/nvim/init.vim index 557e020..48177b7 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -1,3 +1,5 @@ +"set path+=** + let mapleader = "\" source $LOCALAPPDATA/nvim/general/augroups.vim @@ -16,11 +18,14 @@ source $LOCALAPPDATA/nvim/plugs/goyo.vim source $LOCALAPPDATA/nvim/plugs/lightline_v1.vim source $LOCALAPPDATA/nvim/plugs/markdown.vim source $LOCALAPPDATA/nvim/plugs/nerdtree.vim + source $LOCALAPPDATA/nvim/plugs/telescope_plug.vim +" source $LOCALAPPDATA/nvim/plugs/ultisnips.vim source $LOCALAPPDATA/nvim/plugs/vimwiki.vim source $LOCALAPPDATA/nvim/plugs/vimstartify.vim " }}} +" "=====================================================" source $LOCALAPPDATA/nvim/general/cursor.vim source $LOCALAPPDATA/nvim/general/general.vim @@ -33,8 +38,6 @@ source $LOCALAPPDATA/nvim/general/git.vim source $LOCALAPPDATA/nvim/helpers/commands.vim - -"set path+=** -hi Normal ctermbg=none guibg=none +"hi Normal ctermbg=NONE guibg=NONE hi Comment gui=italic cterm=italic hi htmlArg gui=italic cterm=italic diff --git a/nvim/plugs/plugins.vim b/nvim/plugs/plugins.vim index 0adc67c..85625b8 100644 --- a/nvim/plugs/plugins.vim +++ b/nvim/plugs/plugins.vim @@ -1,14 +1,16 @@ +let s:NVIM = "D:/applications/nvim" +let s:PLUGIN_DIR = s:NVIM."/nvim/plugged" " plugins ----- {{{ -call plug#begin("$VIM/nvim/plugged") +call plug#begin(s:PLUGIN_DIR) "https://github.com/junegunn/vim-plug#plug-options Plug 'morhetz/gruvbox' "Plug 'sainnhe/gruvbox-material' " NERD tree will be loaded on the first invocation of NERDTreeToggle command" - "Plug 'preservim/nerdtree',{ 'on': 'NERDTreeToggle'} + Plug 'preservim/nerdtree',{ 'on': 'NERDTreeToggle'} "Plug 'tiagofumo/vim-nerdtree-syntax-highlight' Plug 'tpope/vim-fugitive' Plug 'tpope/vim-commentary' - "Plug 'ryanoasis/vim-devicons' + Plug 'ryanoasis/vim-devicons' " Track the engine. Plug 'SirVer/ultisnips' " Snippets are separated from the engine. Add this if you want them: From e19072a2c03e911c59b53aa5c943dfc8d2aebd86 Mon Sep 17 00:00:00 2001 From: Prashantha T P Date: Sat, 9 Oct 2021 11:55:30 +0530 Subject: [PATCH 25/26] (feat) change configfiles work-tree --- Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1 b/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1 index 2c2284a..890382e 100644 --- a/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1 +++ b/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1 @@ -12,7 +12,7 @@ Invoke-Expression (oh-my-posh --init --shell pwsh --config "C://Users//Prashanth $env:LC_ALL='C.UTF-8' #$env:TERM='xterm-256color' function configfiles_fn{ - git --git-dir=D:/dotfiles/dotfiles --work-tree=$env:LOCALAPPDATA $args + git --git-dir=D:/dotfiles/dotfiles --work-tree=$HOME $args } set-alias -name configfiles -value configfiles_fn ########################################################################## From e3ff2bfcc9d0c9b9b762d5298141c6b401504419 Mon Sep 17 00:00:00 2001 From: Prashantha T P Date: Sat, 9 Oct 2021 12:02:14 +0530 Subject: [PATCH 26/26] (feat | refactor) change configfiless work-tree --- {nvim => AppData/Local/nvim}/README.md | 0 {nvim => AppData/Local/nvim}/coc-settings.json | 0 {nvim => AppData/Local/nvim}/general/augroups.vim | 0 {nvim => AppData/Local/nvim}/general/colorscheme_settings.vim | 0 {nvim => AppData/Local/nvim}/general/cursor.vim | 0 {nvim => AppData/Local/nvim}/general/general.vim | 0 {nvim => AppData/Local/nvim}/general/git.vim | 0 {nvim => AppData/Local/nvim}/general/keybindings.vim | 0 {nvim => AppData/Local/nvim}/general/leader.vim | 0 {nvim => AppData/Local/nvim}/helpers/commands.vim | 0 {nvim => AppData/Local/nvim}/init.vim | 0 {nvim => AppData/Local/nvim}/languages/languages.vim | 0 {nvim => AppData/Local/nvim}/plugs/ale.vim | 0 {nvim => AppData/Local/nvim}/plugs/coc.vim | 0 {nvim => AppData/Local/nvim}/plugs/firenvim.vim | 0 {nvim => AppData/Local/nvim}/plugs/fzf.vim | 0 {nvim => AppData/Local/nvim}/plugs/goyo.vim | 0 {nvim => AppData/Local/nvim}/plugs/lightline_v1.vim | 0 {nvim => AppData/Local/nvim}/plugs/lightline_v2.vim | 0 {nvim => AppData/Local/nvim}/plugs/markdown.vim | 0 {nvim => AppData/Local/nvim}/plugs/nerdcommenter.vim | 0 {nvim => AppData/Local/nvim}/plugs/nerdtree.vim | 0 {nvim => AppData/Local/nvim}/plugs/plugins.vim | 0 {nvim => AppData/Local/nvim}/plugs/telescope_plug.vim | 0 {nvim => AppData/Local/nvim}/plugs/ultisnips.vim | 0 {nvim => AppData/Local/nvim}/plugs/vimstartify.vim | 0 {nvim => AppData/Local/nvim}/plugs/vimwiki.vim | 0 {nvim => AppData/Local/nvim}/ultisnips/c.snippets | 0 {nvim => AppData/Local/nvim}/ultisnips/python.snippets | 0 {nvim => AppData/Local/nvim}/ultisnips/vim.snippets | 0 30 files changed, 0 insertions(+), 0 deletions(-) rename {nvim => AppData/Local/nvim}/README.md (100%) rename {nvim => AppData/Local/nvim}/coc-settings.json (100%) rename {nvim => AppData/Local/nvim}/general/augroups.vim (100%) rename {nvim => AppData/Local/nvim}/general/colorscheme_settings.vim (100%) rename {nvim => AppData/Local/nvim}/general/cursor.vim (100%) rename {nvim => AppData/Local/nvim}/general/general.vim (100%) rename {nvim => AppData/Local/nvim}/general/git.vim (100%) rename {nvim => AppData/Local/nvim}/general/keybindings.vim (100%) rename {nvim => AppData/Local/nvim}/general/leader.vim (100%) rename {nvim => AppData/Local/nvim}/helpers/commands.vim (100%) rename {nvim => AppData/Local/nvim}/init.vim (100%) rename {nvim => AppData/Local/nvim}/languages/languages.vim (100%) rename {nvim => AppData/Local/nvim}/plugs/ale.vim (100%) rename {nvim => AppData/Local/nvim}/plugs/coc.vim (100%) rename {nvim => AppData/Local/nvim}/plugs/firenvim.vim (100%) rename {nvim => AppData/Local/nvim}/plugs/fzf.vim (100%) rename {nvim => AppData/Local/nvim}/plugs/goyo.vim (100%) rename {nvim => AppData/Local/nvim}/plugs/lightline_v1.vim (100%) rename {nvim => AppData/Local/nvim}/plugs/lightline_v2.vim (100%) rename {nvim => AppData/Local/nvim}/plugs/markdown.vim (100%) rename {nvim => AppData/Local/nvim}/plugs/nerdcommenter.vim (100%) rename {nvim => AppData/Local/nvim}/plugs/nerdtree.vim (100%) rename {nvim => AppData/Local/nvim}/plugs/plugins.vim (100%) rename {nvim => AppData/Local/nvim}/plugs/telescope_plug.vim (100%) rename {nvim => AppData/Local/nvim}/plugs/ultisnips.vim (100%) rename {nvim => AppData/Local/nvim}/plugs/vimstartify.vim (100%) rename {nvim => AppData/Local/nvim}/plugs/vimwiki.vim (100%) rename {nvim => AppData/Local/nvim}/ultisnips/c.snippets (100%) rename {nvim => AppData/Local/nvim}/ultisnips/python.snippets (100%) rename {nvim => AppData/Local/nvim}/ultisnips/vim.snippets (100%) diff --git a/nvim/README.md b/AppData/Local/nvim/README.md similarity index 100% rename from nvim/README.md rename to AppData/Local/nvim/README.md diff --git a/nvim/coc-settings.json b/AppData/Local/nvim/coc-settings.json similarity index 100% rename from nvim/coc-settings.json rename to AppData/Local/nvim/coc-settings.json diff --git a/nvim/general/augroups.vim b/AppData/Local/nvim/general/augroups.vim similarity index 100% rename from nvim/general/augroups.vim rename to AppData/Local/nvim/general/augroups.vim diff --git a/nvim/general/colorscheme_settings.vim b/AppData/Local/nvim/general/colorscheme_settings.vim similarity index 100% rename from nvim/general/colorscheme_settings.vim rename to AppData/Local/nvim/general/colorscheme_settings.vim diff --git a/nvim/general/cursor.vim b/AppData/Local/nvim/general/cursor.vim similarity index 100% rename from nvim/general/cursor.vim rename to AppData/Local/nvim/general/cursor.vim diff --git a/nvim/general/general.vim b/AppData/Local/nvim/general/general.vim similarity index 100% rename from nvim/general/general.vim rename to AppData/Local/nvim/general/general.vim diff --git a/nvim/general/git.vim b/AppData/Local/nvim/general/git.vim similarity index 100% rename from nvim/general/git.vim rename to AppData/Local/nvim/general/git.vim diff --git a/nvim/general/keybindings.vim b/AppData/Local/nvim/general/keybindings.vim similarity index 100% rename from nvim/general/keybindings.vim rename to AppData/Local/nvim/general/keybindings.vim diff --git a/nvim/general/leader.vim b/AppData/Local/nvim/general/leader.vim similarity index 100% rename from nvim/general/leader.vim rename to AppData/Local/nvim/general/leader.vim diff --git a/nvim/helpers/commands.vim b/AppData/Local/nvim/helpers/commands.vim similarity index 100% rename from nvim/helpers/commands.vim rename to AppData/Local/nvim/helpers/commands.vim diff --git a/nvim/init.vim b/AppData/Local/nvim/init.vim similarity index 100% rename from nvim/init.vim rename to AppData/Local/nvim/init.vim diff --git a/nvim/languages/languages.vim b/AppData/Local/nvim/languages/languages.vim similarity index 100% rename from nvim/languages/languages.vim rename to AppData/Local/nvim/languages/languages.vim diff --git a/nvim/plugs/ale.vim b/AppData/Local/nvim/plugs/ale.vim similarity index 100% rename from nvim/plugs/ale.vim rename to AppData/Local/nvim/plugs/ale.vim diff --git a/nvim/plugs/coc.vim b/AppData/Local/nvim/plugs/coc.vim similarity index 100% rename from nvim/plugs/coc.vim rename to AppData/Local/nvim/plugs/coc.vim diff --git a/nvim/plugs/firenvim.vim b/AppData/Local/nvim/plugs/firenvim.vim similarity index 100% rename from nvim/plugs/firenvim.vim rename to AppData/Local/nvim/plugs/firenvim.vim diff --git a/nvim/plugs/fzf.vim b/AppData/Local/nvim/plugs/fzf.vim similarity index 100% rename from nvim/plugs/fzf.vim rename to AppData/Local/nvim/plugs/fzf.vim diff --git a/nvim/plugs/goyo.vim b/AppData/Local/nvim/plugs/goyo.vim similarity index 100% rename from nvim/plugs/goyo.vim rename to AppData/Local/nvim/plugs/goyo.vim diff --git a/nvim/plugs/lightline_v1.vim b/AppData/Local/nvim/plugs/lightline_v1.vim similarity index 100% rename from nvim/plugs/lightline_v1.vim rename to AppData/Local/nvim/plugs/lightline_v1.vim diff --git a/nvim/plugs/lightline_v2.vim b/AppData/Local/nvim/plugs/lightline_v2.vim similarity index 100% rename from nvim/plugs/lightline_v2.vim rename to AppData/Local/nvim/plugs/lightline_v2.vim diff --git a/nvim/plugs/markdown.vim b/AppData/Local/nvim/plugs/markdown.vim similarity index 100% rename from nvim/plugs/markdown.vim rename to AppData/Local/nvim/plugs/markdown.vim diff --git a/nvim/plugs/nerdcommenter.vim b/AppData/Local/nvim/plugs/nerdcommenter.vim similarity index 100% rename from nvim/plugs/nerdcommenter.vim rename to AppData/Local/nvim/plugs/nerdcommenter.vim diff --git a/nvim/plugs/nerdtree.vim b/AppData/Local/nvim/plugs/nerdtree.vim similarity index 100% rename from nvim/plugs/nerdtree.vim rename to AppData/Local/nvim/plugs/nerdtree.vim diff --git a/nvim/plugs/plugins.vim b/AppData/Local/nvim/plugs/plugins.vim similarity index 100% rename from nvim/plugs/plugins.vim rename to AppData/Local/nvim/plugs/plugins.vim diff --git a/nvim/plugs/telescope_plug.vim b/AppData/Local/nvim/plugs/telescope_plug.vim similarity index 100% rename from nvim/plugs/telescope_plug.vim rename to AppData/Local/nvim/plugs/telescope_plug.vim diff --git a/nvim/plugs/ultisnips.vim b/AppData/Local/nvim/plugs/ultisnips.vim similarity index 100% rename from nvim/plugs/ultisnips.vim rename to AppData/Local/nvim/plugs/ultisnips.vim diff --git a/nvim/plugs/vimstartify.vim b/AppData/Local/nvim/plugs/vimstartify.vim similarity index 100% rename from nvim/plugs/vimstartify.vim rename to AppData/Local/nvim/plugs/vimstartify.vim diff --git a/nvim/plugs/vimwiki.vim b/AppData/Local/nvim/plugs/vimwiki.vim similarity index 100% rename from nvim/plugs/vimwiki.vim rename to AppData/Local/nvim/plugs/vimwiki.vim diff --git a/nvim/ultisnips/c.snippets b/AppData/Local/nvim/ultisnips/c.snippets similarity index 100% rename from nvim/ultisnips/c.snippets rename to AppData/Local/nvim/ultisnips/c.snippets diff --git a/nvim/ultisnips/python.snippets b/AppData/Local/nvim/ultisnips/python.snippets similarity index 100% rename from nvim/ultisnips/python.snippets rename to AppData/Local/nvim/ultisnips/python.snippets diff --git a/nvim/ultisnips/vim.snippets b/AppData/Local/nvim/ultisnips/vim.snippets similarity index 100% rename from nvim/ultisnips/vim.snippets rename to AppData/Local/nvim/ultisnips/vim.snippets