From 70b401ce603252520f311e20eff64c2609bb84c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20B=C3=B6hrnsen?= Date: Sun, 6 Mar 2022 13:48:02 +0100 Subject: [PATCH] add neovim config --- nvim/coc-settings.json | 24 ++++++++++++++++++++++++ {config/nvim => nvim}/init.vim | 0 2 files changed, 24 insertions(+) create mode 100644 nvim/coc-settings.json rename {config/nvim => nvim}/init.vim (100%) diff --git a/nvim/coc-settings.json b/nvim/coc-settings.json new file mode 100644 index 0000000..f8fdbd4 --- /dev/null +++ b/nvim/coc-settings.json @@ -0,0 +1,24 @@ +{ + "languageserver": { + "golang": { + "command": "gopls", + "rootPatterns": ["go.mod", ".vim/", ".git/", ".hg/"], + "filetypes": ["go"], + "initializationOptions": { + "usePlaceholders": true + } + }, + "ccls": { + "enable": true, + "command": "ccls", + "filetypes": ["c", "cpp", "objc", "objcpp"], + "rootPatterns": [".ccls", "compile_commands.json", ".vim/", ".git/", ".hg/"], + "initializationOptions": { + "cache": { + "directory": "/tmp/ccls" + } + } + } + }, + "diagnostic.displayByAle": true +} diff --git a/config/nvim/init.vim b/nvim/init.vim similarity index 100% rename from config/nvim/init.vim rename to nvim/init.vim