aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim_lsp/ccls.lua
diff options
context:
space:
mode:
authorHirokazu Hata <h.hata.ai.t@gmail.com>2020-05-18 20:14:36 +0900
committerHirokazu Hata <h.hata.ai.t@gmail.com>2020-05-18 20:14:36 +0900
commitb74099cf2734f75a94cd47cc37cef3f721f3b664 (patch)
tree46fe1182d7f88d4f17510710b215e6ce39df3d80 /lua/nvim_lsp/ccls.lua
parent[docgen] Update README.md (diff)
downloadnvim-lspconfig-b74099cf2734f75a94cd47cc37cef3f721f3b664.tar
nvim-lspconfig-b74099cf2734f75a94cd47cc37cef3f721f3b664.tar.gz
nvim-lspconfig-b74099cf2734f75a94cd47cc37cef3f721f3b664.tar.bz2
nvim-lspconfig-b74099cf2734f75a94cd47cc37cef3f721f3b664.tar.lz
nvim-lspconfig-b74099cf2734f75a94cd47cc37cef3f721f3b664.tar.xz
nvim-lspconfig-b74099cf2734f75a94cd47cc37cef3f721f3b664.tar.zst
nvim-lspconfig-b74099cf2734f75a94cd47cc37cef3f721f3b664.zip
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.
Diffstat (limited to 'lua/nvim_lsp/ccls.lua')
-rw-r--r--lua/nvim_lsp/ccls.lua7
1 files changed, 1 insertions, 6 deletions
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]];
};
};
}