dotfiles/nvim/after/ftplugin/tex.lua

11 lines
285 B
Lua
Raw Permalink Normal View History

2024-02-27 02:25:37 +01:00
vim.api.nvim_create_autocmd({"FileType", "BufWinEnter"}, {
pattern = "*.tex",
callback = function(opts)
vim.keymap.set('n', "<leader>k", "<plug>(vimtex-doc-package)",
{ desc = "[TeX] Show Package Documentation", buffer = opts.buf })
end
})
-- vim: ts=2 sts=2 sw=2 et