Chris 5 年之前
父節點
當前提交
017d6a4704
共有 8 個文件被更改,包括 34 次插入20 次删除
  1. 0 9
      coc-settings.json
  2. 2 3
      init.vim
  3. 9 2
      keys/which-key.vim
  4. 2 0
      plug-config/better-whitespace.vim
  5. 3 0
      plug-config/coc.vim
  6. 3 0
      plug-config/vimspector.vim
  7. 10 1
      plug-config/xtabline.vim
  8. 5 5
      vim-plug/plugins.vim

+ 0 - 9
coc-settings.json

@@ -68,15 +68,6 @@
     "v": "open:vsplit"
   },
 
-  "languageserver": {
-    "bash": {
-      "command": "bash-language-server",
-      "args": ["start"],
-      "filetypes": ["sh"],
-      "ignoredRootPaths": ["~"]
-    }
-  },
-
   //coc-emoji
   "coc.source.emoji.filetypes": ["markdown"]
 

+ 2 - 3
init.vim

@@ -19,6 +19,7 @@ source $HOME/.config/nvim/themes/airline.vim
 
 " Plugin Configuration
 source $HOME/.config/nvim/plug-config/rnvimr.vim
+source $HOME/.config/nvim/plug-config/better-whitespace.vim
 source $HOME/.config/nvim/plug-config/fzf.vim
 source $HOME/.config/nvim/plug-config/vim-commentary.vim
 source $HOME/.config/nvim/plug-config/rainbow.vim
@@ -43,6 +44,7 @@ source $HOME/.config/nvim/plug-config/bracey.vim
 source $HOME/.config/nvim/plug-config/asynctask.vim
 source $HOME/.config/nvim/plug-config/window-swap.vim
 source $HOME/.config/nvim/plug-config/markdown-preview.vim
+" source $HOME/.config/nvim/plug-config/vimspector.vim " Uncomment if you want to use Vimspector
 luafile $HOME/.config/nvim/lua/plug-colorizer.lua
 
 " Add paths to node and python here
@@ -50,6 +52,3 @@ if !empty(glob("~/.config/nvim/paths.vim"))
   source $HOME/.config/nvim/paths.vim
 endif
 
-" Experimental
-let g:vimspector_base_dir=expand( '$HOME/.config/nvim/vimspector-config' )
-" let g:vimspector_enable_mappings='HUMAN'

+ 9 - 2
keys/which-key.vim

@@ -34,7 +34,6 @@ let g:which_key_map['/'] = [ ':call Comment()'                    , 'comment' ]
 let g:which_key_map['.'] = [ ':e $MYVIMRC'                        , 'open init' ]
 let g:which_key_map[';'] = [ ':Commands'                          , 'commands' ]
 let g:which_key_map['='] = [ '<C-W>='                             , 'balance windows' ]
-let g:which_key_map[','] = [ 'Startify'                           , 'start screen' ]
 let g:which_key_map['d'] = [ ':bd'                                , 'delete buffer']
 let g:which_key_map['e'] = [ ':CocCommand explorer'               , 'explorer' ]
 let g:which_key_map['f'] = [ ':Farr'                              , 'find and replace' ]
@@ -43,7 +42,6 @@ let g:which_key_map['m'] = [ ':call WindowSwap#EasyWindowSwap()'  , 'move window
 let g:which_key_map['p'] = [ ':Files'                             , 'search files' ]
 let g:which_key_map['q'] = [ 'q'                                  , 'quit' ]
 let g:which_key_map['r'] = [ ':RnvimrToggle'                      , 'ranger' ]
-let g:which_key_map['S'] = [ ':SSave'                             , 'save session' ]
 let g:which_key_map['u'] = [ ':UndotreeToggle'                    , 'undo tree']
 let g:which_key_map['v'] = [ '<C-W>v'                             , 'split right']
 let g:which_key_map['W'] = [ 'w'                                  , 'write' ]
@@ -131,6 +129,15 @@ let g:which_key_map.s = {
       \ }
       " \ 's' : [':Snippets'     , 'snippets'],
 
+let g:which_key_map.S = {
+      \ 'name' : '+Session' ,
+      \ 'c' : [':SClose'          , 'Close Session']  ,
+      \ 'd' : [':SDelete'         , 'Delete Session'] ,
+      \ 'l' : [':SLoad'           , 'Load Session']     ,
+      \ 's' : [':Startify'        , 'Start Page']     ,
+      \ 'S' : [':SSave'           , 'Save Session']   ,
+      \ }
+
 " g is for git
 let g:which_key_map.g = {
       \ 'name' : '+git' ,

+ 2 - 0
plug-config/better-whitespace.vim

@@ -0,0 +1,2 @@
+let g:better_whitespace_enabled=0
+" let g:strip_whitespace_on_save=1

+ 3 - 0
plug-config/coc.vim

@@ -1,6 +1,9 @@
   let g:coc_global_extensions = [
     \ 'coc-snippets',
     \ 'coc-actions',
+    \ 'coc-sh',
+    \ 'coc-java-debug',
+    \ 'coc-java',
     \ 'coc-lists',
     \ 'coc-emmet',
     \ 'coc-tasks',

+ 3 - 0
plug-config/vimspector.vim

@@ -0,0 +1,3 @@
+" Experimental
+let g:vimspector_base_dir=expand( '$HOME/.config/nvim/vimspector-config' )
+let g:vimspector_enable_mappings='HUMAN'

+ 10 - 1
plug-config/xtabline.vim

@@ -1,13 +1,22 @@
 let g:xtabline_settings = {}
+
 let g:xtabline_settings.enable_mappings = 0
+
 let g:xtabline_settings.tabline_modes = ['buffers', 'tabs']
+
 let g:xtabline_settings.enable_persistance = 0
+
 " let g:xtabline_settings.last_open_first = 1
+let g:xtabline_lazy = 1
 
+let g:xtabline_settings.indicators = {
+      \ 'modified': '+',
+      \ 'pinned': '[📌]',
+      \}
 
 let g:xtabline_settings.icons = {
       \'pin': '📌',
-      \'star': '',
+      \'star': '*',
       \'book': '📖',
       \'lock': '🔒',
       \'hammer': '🔨',

+ 5 - 5
vim-plug/plugins.vim

@@ -96,20 +96,20 @@ call plug#begin('~/.config/nvim/autoload/plugged')
   " Easily Create Gists
   Plug 'mattn/vim-gist'
   Plug 'mattn/webapi-vim'
+  " Async Linting Engine
+  " TODO make sure to add ale config before plugin
+  Plug 'dense-analysis/ale'
+  " Better Whitespace
+  Plug 'ntpeters/vim-better-whitespace'
 
   " Plugin Graveyard
 
-  " Better Whitespace
-  " Plug 'ntpeters/vim-better-whitespace'
   " jsx syntax support
   " Plug 'maxmellon/vim-jsx-pretty'
   " Typescript syntax
   " Plug 'HerringtonDarkholme/yats.vim'
   " Multiple Cursors
   " Plug 'terryma/vim-multiple-cursors'
-  " Async Linting Engine
-  " TODO make sure to add ale config before plugin
-  " Plug 'dense-analysis/ale'
   " Plug 'kaicataldo/material.vim'
   " Plug 'NLKNguyen/papercolor-theme'
   " Plug 'tomasiser/vim-code-dark'