[nvim] feat: add latex lsp
This commit is contained in:
parent
9a076e3984
commit
015c7f3936
@ -58,7 +58,7 @@ local capabilities = vim.lsp.protocol.make_client_capabilities()
|
|||||||
capabilities = require("cmp_nvim_lsp").update_capabilities(capabilities)
|
capabilities = require("cmp_nvim_lsp").update_capabilities(capabilities)
|
||||||
|
|
||||||
-- Setup nvim-lsp-installer
|
-- Setup nvim-lsp-installer
|
||||||
local servers = { "clangd", "sumneko_lua" }
|
local servers = { "clangd", "sumneko_lua", "texlab" }
|
||||||
lsp_installer.setup {
|
lsp_installer.setup {
|
||||||
ensure_installed = servers,
|
ensure_installed = servers,
|
||||||
ui = {
|
ui = {
|
||||||
|
18
.config/nvim/lua/plugin/lsp/texlab.lua
Normal file
18
.config/nvim/lua/plugin/lsp/texlab.lua
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
-- Author : swytch
|
||||||
|
-- Created : Monday May 17, 2022 16:29:18 CET
|
||||||
|
-- License : GPLv3
|
||||||
|
-- Description : neovim lsp config file for texlab
|
||||||
|
|
||||||
|
|
||||||
|
local M = {}
|
||||||
|
|
||||||
|
M.setup = function(opts)
|
||||||
|
opts.settings = {
|
||||||
|
build = {
|
||||||
|
executable = "pdflatex"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
|
return M
|
||||||
|
|
Reference in New Issue
Block a user