From 5f574e91bc3d17da8f6f9afc9902a12f760c8927 Mon Sep 17 00:00:00 2001 From: Hirokazu Hata Date: Tue, 16 Jun 2020 13:49:07 +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/html.lua | 2 +- lua/nvim_lsp/jsonls.lua | 2 +- lua/nvim_lsp/purescriptls.lua | 2 +- lua/nvim_lsp/rust_analyzer.lua | 2 +- lua/nvim_lsp/yamlls.lua | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'lua') diff --git a/lua/nvim_lsp/html.lua b/lua/nvim_lsp/html.lua index 363fba7b..e8ccc0ac 100644 --- a/lua/nvim_lsp/html.lua +++ b/lua/nvim_lsp/html.lua @@ -13,7 +13,7 @@ local installer = util.npm_installer { local root_pattern = util.root_pattern("package.json") configs[server_name] = { - default_config = util.utf8_config { + default_config = { cmd = {bin_name, "--stdio"}; filetypes = {"html"}; root_dir = function(fname) diff --git a/lua/nvim_lsp/jsonls.lua b/lua/nvim_lsp/jsonls.lua index 940d608a..f384c0d9 100644 --- a/lua/nvim_lsp/jsonls.lua +++ b/lua/nvim_lsp/jsonls.lua @@ -11,7 +11,7 @@ local installer = util.npm_installer { } configs[server_name] = { - default_config = util.utf8_config { + default_config = { cmd = {bin_name, "--stdio"}; filetypes = {"json"}; root_dir = util.root_pattern(".git", vim.fn.getcwd()); diff --git a/lua/nvim_lsp/purescriptls.lua b/lua/nvim_lsp/purescriptls.lua index d42c79bb..6a00caae 100644 --- a/lua/nvim_lsp/purescriptls.lua +++ b/lua/nvim_lsp/purescriptls.lua @@ -11,7 +11,7 @@ local installer = util.npm_installer { } configs[server_name] = { - default_config = util.utf8_config { + default_config = { cmd = {"purescript-language-server", "--stdio"}; filetypes = {"purescript"}; root_dir = util.root_pattern("spago.dhall", "bower.json"); diff --git a/lua/nvim_lsp/rust_analyzer.lua b/lua/nvim_lsp/rust_analyzer.lua index 633dd72f..f02b6c03 100644 --- a/lua/nvim_lsp/rust_analyzer.lua +++ b/lua/nvim_lsp/rust_analyzer.lua @@ -2,7 +2,7 @@ local configs = require 'nvim_lsp/configs' local util = require 'nvim_lsp/util' configs.rust_analyzer = { - default_config = util.utf8_config { + default_config = { cmd = {"rust-analyzer"}; filetypes = {"rust"}; root_dir = util.root_pattern("Cargo.toml", "rust-project.json"); diff --git a/lua/nvim_lsp/yamlls.lua b/lua/nvim_lsp/yamlls.lua index fbe9950f..dcdb3ac3 100644 --- a/lua/nvim_lsp/yamlls.lua +++ b/lua/nvim_lsp/yamlls.lua @@ -11,7 +11,7 @@ local installer = util.npm_installer { } configs[server_name] = { - default_config = util.utf8_config { + default_config = { cmd = {bin_name, "--stdio"}; filetypes = {"yaml"}; root_dir = util.root_pattern(".git", vim.fn.getcwd()); -- cgit v1.2.3-70-g09d2