From b74099cf2734f75a94cd47cc37cef3f721f3b664 Mon Sep 17 00:00:00 2001 From: Hirokazu Hata Date: Mon, 18 May 2020 20:14:36 +0900 Subject: config: remove unnecessary code comennts and utf8 option Remove meaningless code comments because they are increased by copy and paste. Currently, utf8 options are only supported by clangd, so remove them from unnecessary ones. --- lua/nvim_lsp/ccls.lua | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'lua/nvim_lsp/ccls.lua') diff --git a/lua/nvim_lsp/ccls.lua b/lua/nvim_lsp/ccls.lua index 4accfc98..43d26722 100644 --- a/lua/nvim_lsp/ccls.lua +++ b/lua/nvim_lsp/ccls.lua @@ -2,14 +2,11 @@ local configs = require 'nvim_lsp/configs' local util = require 'nvim_lsp/util' configs.ccls = { - default_config = util.utf8_config { + default_config = { cmd = {"ccls"}; filetypes = {"c", "cpp", "objc", "objcpp"}; root_dir = util.root_pattern("compile_commands.json", "compile_flags.txt", ".git"); }; - -- commands = {}; - -- on_new_config = function(new_config) end; - -- on_attach = function(client, bufnr) end; docs = { vscode = "ccls-project.ccls"; description = [[ @@ -20,8 +17,6 @@ as compile_commands.json or, for simpler projects, a compile_flags.txt. ]]; default_config = { root_dir = [[root_pattern("compile_commands.json", "compile_flags.txt", ".git")]]; - on_init = [[function to handle changing offsetEncoding]]; - capabilities = [[default capabilities, with offsetEncoding utf-8]]; }; }; } -- cgit v1.2.3-70-g09d2