From 223a68e639e52b530f5a042223dab5d8afb46ed2 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sat, 4 May 2019 16:43:15 -0700 Subject: [PATCH] Configure CoC. It doesn't work as well as LSP by itself, though. --- nvim/.config/nvim/coc-settings.json | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 nvim/.config/nvim/coc-settings.json diff --git a/nvim/.config/nvim/coc-settings.json b/nvim/.config/nvim/coc-settings.json new file mode 100644 index 0000000..b220c20 --- /dev/null +++ b/nvim/.config/nvim/coc-settings.json @@ -0,0 +1,19 @@ +{ + "languageserver": { + "clangd": { + "command": "clangd", + "filetypes": ["c", "cpp"], + "rootPatterns": ["compile_flags.txt", "compile_commands.json" ] + }, + "haskell": { + "command": "hie-wrapper", + "filetypes": ["haskell"], + "rootPatterns": [".stack.yaml", "cabal.config", "package.yaml"] + }, + "scry": { + "command": "scry", + "filetypes": ["crystal"], + "rootPatterns": ["shard.yml"] + } + } +}