From 6d157bb63a92871b7ddddf354b7733e9d5d9af6c Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 12 May 2020 11:31:12 -0400 Subject: [PATCH] silent keymappings, less themes --- coc-settings.json | 28 +++++++++++++++++++--------- keys/mappings.vim | 20 ++++++++++---------- vim-plug/plugins.vim | 6 +++--- 3 files changed, 32 insertions(+), 22 deletions(-) diff --git a/coc-settings.json b/coc-settings.json index 641e3730..623bb95e 100644 --- a/coc-settings.json +++ b/coc-settings.json @@ -1,7 +1,12 @@ { - // suggestions // "suggest.echodocSupport": true, + // TODO add more labels and give them cool glyphs + "suggest.completionItemKindLabels": { + "text": "t", + "method": "m", + "function": "f" + }, // diagnostics "diagnostic.errorSign": "✗", @@ -18,7 +23,16 @@ "list.selectedSignText": " ", // autoformat - "coc.preferences.formatOnSaveFiletypes": ["css", "markdown", "javascript", "graphql", "html", "yaml", "json", "python"], + "coc.preferences.formatOnSaveFiletypes": [ + "css", + "markdown", + "javascript", + "graphql", + "html", + "yaml", + "json", + "python" + ], "coc.preferences.hoverTarget": "float", // python config @@ -26,23 +40,19 @@ "python.linting.pylintEnabled": true, // snippets - "snippets.ultisnips.directories": - [ - "UltiSnips", - "~/.config/nvim/utils/snips" - ], + "snippets.ultisnips.directories": ["UltiSnips", "~/.config/nvim/utils/snips"], // explorer "explorer.width": 30, "explorer.icon.enableNerdfont": true, "explorer.previewAction.onHover": false, - "explorer.icon.enableVimDevicons": true, + "explorer.icon.enableVimDevicons": false, "explorer.keyMappings": { "": ["expandable?", "expand", "open"], "v": "open:vsplit" }, - "languageserver":{ + "languageserver": { "bash": { "command": "bash-language-server", "args": ["start"], diff --git a/keys/mappings.vim b/keys/mappings.vim index 3e1d5741..33802954 100644 --- a/keys/mappings.vim +++ b/keys/mappings.vim @@ -27,18 +27,18 @@ else " nnoremap viwU " TAB in general mode will move to text buffer - nnoremap :bnext + nnoremap :bnext " SHIFT-TAB will go back - nnoremap :bprevious + nnoremap :bprevious " Alternate way to save - nnoremap :w + nnoremap :w " Alternate way to quit - nnoremap :wq! + nnoremap :wq! " Use control-c instead of escape - nnoremap + nnoremap " : completion. - inoremap pumvisible() ? "\" : "\" + inoremap pumvisible() ? "\" : "\" " Better window navigation @@ -48,9 +48,9 @@ else nnoremap l " Use alt + hjkl to resize windows - nnoremap :resize -2 - nnoremap :resize +2 - nnoremap :vertical resize -2 - nnoremap :vertical resize +2 + nnoremap :resize -2 + nnoremap :resize +2 + nnoremap :vertical resize -2 + nnoremap :vertical resize +2 endif diff --git a/vim-plug/plugins.vim b/vim-plug/plugins.vim index 4031da3d..8f8eb989 100644 --- a/vim-plug/plugins.vim +++ b/vim-plug/plugins.vim @@ -47,13 +47,13 @@ call plug#begin('~/.config/nvim/autoload/plugged') Plug 'alvan/vim-closetag' " Themes Plug 'christianchiarulli/onedark.vim' - Plug 'kaicataldo/material.vim' - Plug 'NLKNguyen/papercolor-theme' + " Plug 'kaicataldo/material.vim' + " Plug 'NLKNguyen/papercolor-theme' " Intellisense Plug 'neoclide/coc.nvim', {'branch': 'release'} " Status Line Plug 'vim-airline/vim-airline' - Plug 'vim-airline/vim-airline-themes' + " Plug 'vim-airline/vim-airline-themes' " Ranger Plug 'francoiscabrol/ranger.vim' Plug 'rbgrouleff/bclose.vim'