Compare commits
2 commits
0d82ed72dc
...
041391864a
Author | SHA1 | Date | |
---|---|---|---|
041391864a | |||
ae06884e90 |
4 changed files with 72 additions and 20 deletions
|
@ -8,22 +8,26 @@ return {
|
|||
},
|
||||
{
|
||||
"folke/noice.nvim",
|
||||
opts = {
|
||||
presets = {
|
||||
command_palette = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
-- add emoji completion
|
||||
-- opts = {
|
||||
-- presets = {
|
||||
-- command_palette = false,
|
||||
-- },
|
||||
-- https://github.com/folke/noice.nvim/wiki/Configuration-Recipes#ignore-certain-lsp-servers-for-progress-messages
|
||||
-- routes = {
|
||||
-- {
|
||||
-- "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" } }))
|
||||
-- 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 },
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
},
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = function(_, opts)
|
||||
|
@ -35,12 +39,7 @@ return {
|
|||
"json",
|
||||
"yaml",
|
||||
|
||||
"go",
|
||||
"regex",
|
||||
|
||||
"javascript",
|
||||
"tsx",
|
||||
"typescript",
|
||||
})
|
||||
end,
|
||||
},
|
||||
|
|
|
@ -3,6 +3,7 @@ local plugins = {}
|
|||
|
||||
local single_host_plugins = {
|
||||
othalan = {
|
||||
{ "aklt/plantuml-syntax" },
|
||||
{ "kaarmu/typst.vim" },
|
||||
{
|
||||
"mickael-menu/zk-nvim",
|
||||
|
|
46
home/private_dot_config/nvim/lua/plugins/language/tex.lua
Normal file
46
home/private_dot_config/nvim/lua/plugins/language/tex.lua
Normal 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 },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
|
@ -12,6 +12,12 @@ config.window_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.use_fancy_tab_bar = false
|
||||
config.hide_tab_bar_if_only_one_tab = true
|
||||
|
|
Loading…
Reference in a new issue