From 25a930d33006b2cc16539cf0e385c6c6a8de6d43 Mon Sep 17 00:00:00 2001 From: Andre Herniques Date: Mon, 5 Jun 2023 13:59:07 +0100 Subject: [PATCH] Moved to tex lsp --- lua/andr3/langs/tex.lua | 12 ++++++++++++ lua/andr3/lsp.lua | 1 + lua/andr3/packer.lua | 3 --- plugin/packer_compiled.lua | 5 ----- 4 files changed, 13 insertions(+), 8 deletions(-) create mode 100644 lua/andr3/langs/tex.lua diff --git a/lua/andr3/langs/tex.lua b/lua/andr3/langs/tex.lua new file mode 100644 index 0000000..f1faa76 --- /dev/null +++ b/lua/andr3/langs/tex.lua @@ -0,0 +1,12 @@ +local O = {}; +local lspConfig = require('lspconfig') + +function O.setup(on_attach, lsp_flags, capabilities) + lspConfig['ltex'].setup{ + on_attach = on_attach, + flags = lsp_flags, + capabilities = capabilities, + } +end + +return O diff --git a/lua/andr3/lsp.lua b/lua/andr3/lsp.lua index cbee510..91aaa53 100644 --- a/lua/andr3/lsp.lua +++ b/lua/andr3/lsp.lua @@ -324,4 +324,5 @@ require 'andr3.langs.ccls'.setup(on_attach, lsp_flags, capabilities) require 'andr3.langs.python'.setup(on_attach, lsp_flags, capabilities) require 'andr3.langs.bash'.setup(on_attach, lsp_flags, capabilities) require 'andr3.langs.zig'.setup(on_attach, lsp_flags, capabilities) +require 'andr3.langs.tex'.setup(on_attach, lsp_flags, capabilities) diff --git a/lua/andr3/packer.lua b/lua/andr3/packer.lua index 2224f42..82ea9bc 100644 --- a/lua/andr3/packer.lua +++ b/lua/andr3/packer.lua @@ -55,9 +55,6 @@ return require('packer').startup(function() use "nvim-lua/plenary.nvim" - -- Langunage tool - use 'rhysd/vim-grammarous' - use { 'nvim-tree/nvim-tree.lua', requires = { diff --git a/plugin/packer_compiled.lua b/plugin/packer_compiled.lua index f52524b..3b58e24 100644 --- a/plugin/packer_compiled.lua +++ b/plugin/packer_compiled.lua @@ -224,11 +224,6 @@ _G.packer_plugins = { path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/vim-gitgutter", url = "https://github.com/airblade/vim-gitgutter" }, - ["vim-grammarous"] = { - loaded = true, - path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/vim-grammarous", - url = "https://github.com/rhysd/vim-grammarous" - }, ["vim-javascript"] = { loaded = true, path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/vim-javascript",