From 0d16d52492938dd92591b1278a73d50ef388c633 Mon Sep 17 00:00:00 2001 From: Vito Graffagnino Date: Wed, 9 Sep 2020 14:53:26 +0100 Subject: update/modularised nvim config files --- .config/nvim/coc-settings.json | 73 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 .config/nvim/coc-settings.json (limited to '.config/nvim/coc-settings.json') diff --git a/.config/nvim/coc-settings.json b/.config/nvim/coc-settings.json new file mode 100644 index 0000000..a11d575 --- /dev/null +++ b/.config/nvim/coc-settings.json @@ -0,0 +1,73 @@ +{ + // suggestions + // "suggest.echodocSupport": true, + // TODO add more labels and give them cool glyphs + "suggest.completionItemKindLabels": { + "text": "t", + "method": "m", + "function": "f" + }, + + // diagnostics + "diagnostic.errorSign": "✗", + "diagnostic.warningSign": "⚠", + "diagnostic.infoSign": "", + "diagnostic.hintSign": " ", + // "diagnostic.displayByAle": true, + + // codelens TODO what does this get me? + // "codeLens.enable": true, + + // list + "list.indicator": ">", + "list.selectedSignText": " ", + + // autoformat + "coc.preferences.formatOnSaveFiletypes": [ + "css", + "markdown", + "javascript", + "html", + "yaml", + "json", + "python" + ], + "coc.preferences.hoverTarget": "float", + + // python config + "python.linting.enabled": true, + "python.linting.pylintEnabled": true, + + // snippets + "snippets.ultisnips.directories": ["UltiSnips", "~/.config/nvim/utils/snips"], + + // explorer + "explorer.width": 30, + "explorer.icon.enableNerdfont": true, + "explorer.previewAction.onHover": false, + "explorer.icon.enableVimDevicons": false, + "explorer.keyMappings": { + "": ["expandable?", "expand", "open"], + "v": "open:vsplit" + }, + + "languageserver": { + "bash": { + "command": "bash-language-server", + "args": ["start"], + "filetypes": ["sh"], + "ignoredRootPaths": ["~"] + }, + "clangd": { + "command": "clangd", + "rootPatterns": ["compile_flags.txt", "compile_commands.json"], + "filetypes": ["c", "cc", "cpp", "c++", "objc", "objcpp"] + } + + } + + // TODO language servers + // TODO g:coc_global_extensions + // TODO b:coc_suggest_disable=1 GOYO + // TODO add to paths.vim g:coc_node_path +} -- cgit v1.2.3