Compare commits
No commits in common. "041391864a8e2f1050b629628dbcdd43daee14b6" and "0d82ed72dca1d0b9ef354ae1133ea8d3822b8259" have entirely different histories.
041391864a
...
0d82ed72dc
4 changed files with 20 additions and 72 deletions
|
@ -8,26 +8,22 @@ return {
|
|||
},
|
||||
{
|
||||
"folke/noice.nvim",
|
||||
-- opts = {
|
||||
-- presets = {
|
||||
-- command_palette = false,
|
||||
-- },
|
||||
-- https://github.com/folke/noice.nvim/wiki/Configuration-Recipes#ignore-certain-lsp-servers-for-progress-messages
|
||||
-- routes = {
|
||||
opts = {
|
||||
presets = {
|
||||
command_palette = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
-- add emoji completion
|
||||
-- {
|
||||
-- filter = {
|
||||
-- event = "lsp",
|
||||
-- kind = "msg_show";
|
||||
-- cond = function(message)
|
||||
-- local client = vim.tbl_get(message.opts, "progress", "client")
|
||||
-- return client == "nim_langserver"
|
||||
-- "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,
|
||||
-- },
|
||||
-- opts = { skip = true },
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
},
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = function(_, opts)
|
||||
|
@ -39,7 +35,12 @@ return {
|
|||
"json",
|
||||
"yaml",
|
||||
|
||||
"go",
|
||||
"regex",
|
||||
|
||||
"javascript",
|
||||
"tsx",
|
||||
"typescript",
|
||||
})
|
||||
end,
|
||||
},
|
||||
|
|
|
@ -3,7 +3,6 @@ local plugins = {}
|
|||
|
||||
local single_host_plugins = {
|
||||
othalan = {
|
||||
{ "aklt/plantuml-syntax" },
|
||||
{ "kaarmu/typst.vim" },
|
||||
{
|
||||
"mickael-menu/zk-nvim",
|
||||
|
|
|
@ -1,46 +0,0 @@
|
|||
-- 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,12 +12,6 @@ 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