Neovim (LaTeX): - Add TeX ftplugin: spell (en_US,de_DE), soft-wrap + linebreak, conceal=2, no hard wrap - Add plugins: vimtex (zathura; latexmk with LuaLaTeX + shell-escape), LTeX language server via astrolsp + ltex_extra (check on save; motherTongue=de-DE), blink.cmp integration (cmp-vimtex, cmp-latex-symbols → insert macros), LuaSnip LaTeX snippets, Treesitter “latex”, nabla.nvim (inline/popup math; <leader>mp/<leader>mv) Hyprland: - Set master.orientation=left; comment out center_master_* options Counter-Strike autoexec: - Rebind +lookatweapon → MOUSE5; map R → lastinv; radio on Y/U/I/H; J → +radialradio - Crosshair tweaks: size 2.5, gap -3, no outline, alpha off - Mouse: sensitivity 0.619; zoom_sensitivity_ratio 1.0 - Viewmodel: offset_x -2; cl_prefer_lefthanded 0 - Video/perf: gamma 1.6; set fps_max/fps_max_ui 0; drop legacy perf/network cvars (mat_queue_mode, cl_forcepreload, rate/interp*) - HUD cleanup: disable target ID; remove +cl_show_team_equipment GTK: - Add bookmark: Documents/ttrpg/dsa5
55 lines
2.0 KiB
Lua
55 lines
2.0 KiB
Lua
-- Grammar & spell checking for LaTeX/Markdown via LanguageTool (LTeX-LS)
|
|
return {
|
|
-- Tell AstroLSP to manage the ltex server and pass our settings
|
|
{
|
|
"AstroNvim/astrolsp",
|
|
---@param opts AstroLSPOpts
|
|
opts = function(_, opts)
|
|
opts.servers = opts.servers or {}
|
|
if not vim.tbl_contains(opts.servers, "ltex") then table.insert(opts.servers, "ltex") end
|
|
|
|
-- Extend the ltex server configuration
|
|
opts.config = require("astrocore").extend_tbl(opts.config or {}, {
|
|
ltex = {
|
|
filetypes = { "tex", "plaintex", "bib", "markdown" },
|
|
settings = {
|
|
ltex = {
|
|
-- Run checks on save for performance; switch to "edit" if you prefer live feedback
|
|
checkFrequency = "save",
|
|
-- Pick the language you want LTeX to check as the document language
|
|
language = "en-US",
|
|
-- Mother tongue helps the grammar engine (adjust to your preference)
|
|
additionalRules = { motherTongue = "de-DE" },
|
|
-- Let ltex_extra manage dictionaries/rules on disk
|
|
dictionary = {},
|
|
disabledRules = {},
|
|
hiddenFalsePositives = {},
|
|
},
|
|
},
|
|
-- hook up ltex_extra when the server attaches
|
|
on_attach = function(client, bufnr)
|
|
local ok, ltex_extra = pcall(require, "ltex_extra")
|
|
if ok then
|
|
ltex_extra.setup {
|
|
-- load both EN+DE dictionaries; change to your set
|
|
load_langs = { "en-US", "de-DE" },
|
|
init_check = true,
|
|
-- store per-project files in .ltex (add to .gitignore if you want)
|
|
path = ".ltex",
|
|
log_level = "none",
|
|
}
|
|
end
|
|
end,
|
|
},
|
|
})
|
|
end,
|
|
},
|
|
|
|
-- Companion plugin: add-to-dictionary / disable-rule / hide-false-positive
|
|
{
|
|
"barreiroleo/ltex_extra.nvim",
|
|
ft = { "tex", "plaintex", "markdown" },
|
|
lazy = true,
|
|
},
|
|
}
|