From 555edd89df5072d6459f91a9db972637445ea51e Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 3 May 2022 19:25:45 +0200 Subject: [PATCH] chore: remove lsp-formart --- configs/nvim/lua/configs/lsp.lua | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/configs/nvim/lua/configs/lsp.lua b/configs/nvim/lua/configs/lsp.lua index e0e27fa..042d660 100644 --- a/configs/nvim/lua/configs/lsp.lua +++ b/configs/nvim/lua/configs/lsp.lua @@ -3,15 +3,12 @@ lsp_installer.setup { ensure_installed = { "sumneko_lua", "jsonls", "tsserver", "svelte", "cssls" } } local lsp = require "lspconfig" -local lsp_format = require("lsp-format"); -lsp_format.setup {} local runtime_path = vim.split(package.path, ";") table.insert(runtime_path, "lua/?.lua") table.insert(runtime_path, "lua/?/init.lua") lsp.sumneko_lua.setup { - on_attach = lsp_format.on_attach, settings = { Lua = { runtime = { @@ -42,7 +39,6 @@ capabilities.textDocument.completion.completionItem.snippetSupport = true lsp.jsonls.setup { capabilities = capabilities, - on_attach = lsp_format.on_attach, settings = { json = { schemas = { @@ -66,13 +62,14 @@ lsp.jsonls.setup { } } -lsp.svelte.setup { - on_attach = lsp_format.on_attach +lsp.ltex.setup { + cmd = { os.getenv("HOME") .. '/.local/share/nvim/lsp_servers/ltex/ltex-ls/bin/ltex-ls' }, + settings = { + ltex = { + disabledRules = { ['en-US'] = { 'PROFANITY' } }, + dictionary = { + ['en-US'] = { 'perf', 'ci' }, + }, + }, + }, } - -lsp.tsserver.setup { - on_attach = lsp_format.on_attach -} - --- Ltex Language Server -require("grammar-guard").init()