feat hypr keybind helper via quickshell; fix nvim plugins (not completly done yet)
This commit is contained in:
@@ -3,7 +3,7 @@ vim.lsp.config("texlab", {
|
||||
texlab = {
|
||||
build = {
|
||||
executable = "latexmk",
|
||||
args = { "-pdf", "-interaction=nonstopmode", "-synctex=1", "%f" },
|
||||
args = { "-lualatex", "-interaction=nonstopmode", "-synctex=1", "%f" },
|
||||
onSave = false,
|
||||
forwardSearchAfter = false,
|
||||
},
|
||||
|
||||
@@ -60,3 +60,19 @@ opt.completeopt = { "menu", "menuone", "noselect" }
|
||||
opt.mouse = "a"
|
||||
opt.fileencoding = "utf-8"
|
||||
opt.shortmess:append("c")
|
||||
|
||||
vim.diagnostic.config({
|
||||
virtual_text = { prefix = "●", source = "if_many" },
|
||||
float = { border = "rounded", source = true },
|
||||
signs = {
|
||||
text = {
|
||||
[vim.diagnostic.severity.ERROR] = " ",
|
||||
[vim.diagnostic.severity.WARN] = " ",
|
||||
[vim.diagnostic.severity.HINT] = " ",
|
||||
[vim.diagnostic.severity.INFO] = " ",
|
||||
},
|
||||
},
|
||||
underline = true,
|
||||
update_in_insert = false,
|
||||
severity_sort = true,
|
||||
})
|
||||
|
||||
@@ -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" } },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user