add plantuml syntax

This commit is contained in:
Daylin Morgan 2024-08-20 14:53:02 -05:00
parent 0d82ed72dc
commit ae06884e90
Signed by: daylin
GPG key ID: 950D13E9719334AD
3 changed files with 66 additions and 20 deletions

View file

@ -8,22 +8,26 @@ return {
}, },
{ {
"folke/noice.nvim", "folke/noice.nvim",
opts = { -- opts = {
presets = { -- presets = {
command_palette = false, -- command_palette = false,
}, -- },
}, -- https://github.com/folke/noice.nvim/wiki/Configuration-Recipes#ignore-certain-lsp-servers-for-progress-messages
}, -- routes = {
-- add emoji completion
-- { -- {
-- "hrsh7th/nvim-cmp", -- filter = {
-- dependencies = { "hrsh7th/cmp-emoji" }, -- event = "lsp",
-- ---@param opts cmp.ConfigSchema -- kind = "msg_show";
-- opts = function(_, opts) -- cond = function(message)
-- local cmp = require("cmp") -- local client = vim.tbl_get(message.opts, "progress", "client")
-- opts.sources = cmp.config.sources(vim.list_extend(opts.sources, { { name = "emoji" } })) -- return client == "nim_langserver"
-- end, -- end,
-- }, -- },
-- opts = { skip = true },
-- },
-- },
-- },
},
{ {
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
opts = function(_, opts) opts = function(_, opts)
@ -35,12 +39,7 @@ return {
"json", "json",
"yaml", "yaml",
"go",
"regex", "regex",
"javascript",
"tsx",
"typescript",
}) })
end, end,
}, },

View file

@ -3,6 +3,7 @@ local plugins = {}
local single_host_plugins = { local single_host_plugins = {
othalan = { othalan = {
{ "aklt/plantuml-syntax" },
{ "kaarmu/typst.vim" }, { "kaarmu/typst.vim" },
{ {
"mickael-menu/zk-nvim", "mickael-menu/zk-nvim",

View file

@ -0,0 +1,46 @@
-- based on: https://raw.githubusercontent.com/LazyVim/LazyVim/main/lua/lazyvim/plugins/extras/lang/tex.lua
return {
-- Add BibTeX/LaTeX to treesitter
-- some issue with latex treesitter
-- {
-- "nvim-treesitter/nvim-treesitter",
-- opts = function(_, opts)
-- opts.highlight = opts.highlight or {}
-- if type(opts.ensure_installed) == "table" then
-- vim.list_extend(opts.ensure_installed, { "bibtex" })
-- end
-- if type(opts.highlight.disable) == "table" then
-- vim.list_extend(opts.highlight.disable, { "latex" })
-- else
-- opts.highlight.disable = { "latex" }
-- end
-- end,
-- },
--
{
"lervag/vimtex",
lazy = false, -- lazy-loading will disable inverse search
config = function()
vim.g.vimtex_mappings_disable = { ["n"] = { "K" } } -- disable `K` as it conflicts with LSP hover
vim.g.vimtex_quickfix_method = vim.fn.executable("pplatex") == 1 and "pplatex" or "latexlog"
end,
keys = {
{ "<localLeader>l", "", desc = "+vimtext" },
},
},
-- Correctly setup lspconfig for LaTeX 🚀
{
"neovim/nvim-lspconfig",
optional = true,
opts = {
servers = {
texlab = {
keys = {
{ "<Leader>K", "<plug>(vimtex-doc-package)", desc = "Vimtex Docs", silent = true },
},
},
},
},
},
}