From 9d481edb149272113e5f12e3c84c25c62445aa03 Mon Sep 17 00:00:00 2001 From: Alexander Gehrke Date: Wed, 25 Dec 2019 00:22:35 +0100 Subject: [PATCH] Add coc.vim settings --- after/plugin/coc.vim | 18 ++++++++++++++++++ coc-settings.json | 9 +++++++++ 2 files changed, 27 insertions(+) create mode 100644 after/plugin/coc.vim create mode 100644 coc-settings.json diff --git a/after/plugin/coc.vim b/after/plugin/coc.vim new file mode 100644 index 0000000..6fbd5ec --- /dev/null +++ b/after/plugin/coc.vim @@ -0,0 +1,18 @@ +map gd (coc-definition) + +map :call CocAction("doHover") +map t (coc-type-definition) +map u (coc-references) +map r (coc-rename) +map q (coc-quickfix) + +map F (coc-format) +map f (coc-format-selected) +vmap f (coc-format-selected) + +map (coc-codeaction) +vmap (coc-codeaction-selected) + +omap af (coc-funcobj-a) +omap if (coc-funcobj-i) + diff --git a/coc-settings.json b/coc-settings.json new file mode 100644 index 0000000..17fd15c --- /dev/null +++ b/coc-settings.json @@ -0,0 +1,9 @@ +{ + "languageserver": { + "dotty": { + "command": "run-dotty-lsp", + "rootPatterns": ["build.sbt"], + "filetypes": ["scala", "sbt"] + } + } +}