feat hypr keybind helper via quickshell; fix nvim plugins (not completly done yet)

This commit is contained in:
2026-05-13 02:09:43 +02:00
parent 8a6cb3b37f
commit eaaf857026
10 changed files with 570 additions and 105 deletions
+18
View File
@@ -57,6 +57,7 @@ return {
html = { "prettier" },
css = { "prettier" },
markdown = { "prettier" },
tex = { "latexindent" },
["jinja.html"] = { "djlint" },
},
format_on_save = {
@@ -65,4 +66,21 @@ return {
},
},
},
-- Doc-stub generation: JSDoc, Javadoc, rustdoc
{
"danymat/neogen",
cmd = "Neogen",
keys = {
{ "<leader>lg", function() require("neogen").generate() end, desc = "Generate doc" },
},
opts = {
snippet_engine = "luasnip",
languages = {
java = { template = { annotation_convention = "javadoc" } },
typescript = { template = { annotation_convention = "tsdoc" } },
rust = { template = { annotation_convention = "rustdoc" } },
},
},
},
}
+3
View File
@@ -147,6 +147,9 @@ return {
local map = vim.keymap.set
map("n", "<leader>uw", function() vim.opt.wrap = not vim.wo.wrap end, { desc = "Toggle wrap" })
map("n", "<leader>uf", "zA", { desc = "Toggle all folds" })
map("n", "<leader>uc", function()
vim.opt_local.conceallevel = vim.o.conceallevel == 0 and 2 or 0
end, { desc = "Toggle conceal" })
end,
},
+7 -6
View File
@@ -5,22 +5,23 @@ return {
ft = { "tex", "plaintex", "bib" },
init = function()
-- Must be set before vimtex loads
vim.g.vimtex_view_method = "zathura"
-- zathura-synctex: Wayland-native viewer (DBus forward search, hyprctl focus, no xdotool)
vim.g.vimtex_view_method = "general"
vim.g.vimtex_view_general_viewer = "zathura-synctex"
vim.g.vimtex_view_general_options = "--synctex-forward @line:@col:@tex @pdf"
vim.g.vimtex_compiler_method = "latexmk"
vim.g.vimtex_compiler_latexmk_engines = { _ = "-lualatex" }
vim.g.vimtex_compiler_latexmk = {
options = {
"-pdf",
"-shell-escape",
"-verbose",
"-file-line-error",
"-synctex=1",
"-interaction=nonstopmode",
"-lualatex",
},
}
-- Disable vimtex completion (blink.cmp handles it via cmp-vimtex)
vim.g.vimtex_complete_enabled = 0
-- Disable vimtex's own syntax (use treesitter instead, with vim regex fallback)
-- Must stay 1: cmp-vimtex uses VimTeX's completion engine for \begin/\end items
vim.g.vimtex_complete_enabled = 1
vim.g.vimtex_syntax_enabled = 1
vim.g.vimtex_syntax_conceal_disable = 0
end,