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"] + } + } +}