added signify and fixed coc-rename keybindings
authorGeorgios Atheridis <atheridis@tutamail.com>
Mon, 23 May 2022 20:02:54 +0000 (23:02 +0300)
committerGeorgios Atheridis <atheridis@tutamail.com>
Mon, 23 May 2022 20:02:54 +0000 (23:02 +0300)
coc-settings.json
plug_settings/coc/mappings.vim
vim_settings/plugins.vim

index 971a6c02c6db53148a4e9732c7ce4104601f9704..75ea7b6ddc532d4c05eb5959be2447c0cb348c99 100644 (file)
             ]
         }
     },
+    "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",
index b4ed16ad7c6d5ff17139ef6a3f94ad42d54aa0b7..b1b041249b26b31d9cfccc82a6feb117b6729f9a 100644 (file)
@@ -24,7 +24,7 @@ augroup mygroup
 augroup end
 
 " Symbol renaming
-nnoremap <leader>rm <Plug>(coc-rename)
+nnoremap <leader>rn <Plug>(coc-rename)
 
 " Use tab for trigger completion with characters ahead and navigate.
 " NOTE: Use command ':verbose imap <tab>' to make sure tab is not mapped by
index 02a09f6a3f738dbd54b7051cd8e99dc7a54fd2d5..6963b6e5910481550e9c10b24ed2c47fee1d477a 100644 (file)
@@ -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'