Compare commits

...

2 commits

Author SHA1 Message Date
041391864a
workaround for wezterm rendering 2024-08-20 14:59:23 -05:00
ae06884e90
add plantuml syntax 2024-08-20 14:59:03 -05:00
4 changed files with 72 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 = {
-- {
-- filter = {
-- event = "lsp",
-- kind = "msg_show";
-- cond = function(message)
-- local client = vim.tbl_get(message.opts, "progress", "client")
-- return client == "nim_langserver"
-- end,
-- },
-- opts = { skip = true },
-- },
-- },
-- },
}, },
-- add emoji completion
-- {
-- "hrsh7th/nvim-cmp",
-- dependencies = { "hrsh7th/cmp-emoji" },
-- ---@param opts cmp.ConfigSchema
-- opts = function(_, opts)
-- local cmp = require("cmp")
-- opts.sources = cmp.config.sources(vim.list_extend(opts.sources, { { name = "emoji" } }))
-- end,
-- },
{ {
"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 },
},
},
},
},
},
}

View file

@ -12,6 +12,12 @@ config.window_padding = {
bottom = padding, bottom = padding,
} }
-- https://github.com/NixOS/nixpkgs/issues/336069
-- https://github.com/wez/wezterm/issues/5990
-- why though front_end ?
-- OpenGL on nix?
config.front_end = "WebGpu"
config.color_scheme = "Catppuccin Mocha" config.color_scheme = "Catppuccin Mocha"
config.use_fancy_tab_bar = false config.use_fancy_tab_bar = false
config.hide_tab_bar_if_only_one_tab = true config.hide_tab_bar_if_only_one_tab = true