From: Georgios Atheridis Date: Mon, 23 May 2022 20:02:54 +0000 (+0300) Subject: added signify and fixed coc-rename keybindings X-Git-Url: https://git.atheridis.org/?a=commitdiff_plain;h=a7a7896c56494be33ef69907541e759be3c214d2;p=configs%2Fneovim.git added signify and fixed coc-rename keybindings --- diff --git a/coc-settings.json b/coc-settings.json index 971a6c0..75ea7b6 100644 --- a/coc-settings.json +++ b/coc-settings.json @@ -28,6 +28,45 @@ ] } }, + "diagnostic-languageserver.filetypes": { + "python": "flake8" + }, + "diagnostic-languageserver.linters": { + "flake8": { + "sourceName": "flake8", + "command": "flake8", + "debounce": 200, + "rootPatterns": [ + ".git", + "pyproject.toml", + "setup.py" + ], + "args": [ + "--ignore=E402,C901,W503,W504,E116,E702,C0103,C0114,C0115,C0116,C0103,C0301,W0613,W0102,R0903,R0902,R0914,R0915,R0205,W0703,W0702,W0603", + "--format=%(row)d,%(col)d,%(code).1s,%(code)s: %(text)s", + "-" + ], + "offsetLine": 0, + "offsetColumn": 0, + "formatLines": 1, + "formatPattern": [ + "(\\d+),(\\d+),([A-Z]),(.*)(\\r|\\n)*$", + { + "line": 1, + "column": 2, + "security": 3, + "message": 4 + } + ], + "securities": { + "W": "info", + "E": "warning", + "F": "info", + "C": "info", + "N": "hint" + } + } + }, "coc.preferences.formatOnSaveFiletypes": [ "c", "cpp", diff --git a/plug_settings/coc/mappings.vim b/plug_settings/coc/mappings.vim index b4ed16a..b1b0412 100644 --- a/plug_settings/coc/mappings.vim +++ b/plug_settings/coc/mappings.vim @@ -24,7 +24,7 @@ augroup mygroup augroup end " Symbol renaming -nnoremap rm (coc-rename) +nnoremap rn (coc-rename) " Use tab for trigger completion with characters ahead and navigate. " NOTE: Use command ':verbose imap ' to make sure tab is not mapped by diff --git a/vim_settings/plugins.vim b/vim_settings/plugins.vim index 02a09f6..6963b6e 100644 --- a/vim_settings/plugins.vim +++ b/vim_settings/plugins.vim @@ -35,6 +35,13 @@ call plug#begin() " Startify Plug 'mhinz/vim-startify' + " Signify --- Git + if has('nvim') || has('patch-8.0.902') + Plug 'mhinz/vim-signify' + else + Plug 'mhinz/vim-signify', { 'branch': 'legacy' } + endif + " Themes Plug 'NLKNguyen/papercolor-theme' Plug 'vim-airline/vim-airline'