Compare commits
No commits in common. "22b51e96bcffaf092b16e3fec15e1f2e033ed033" and "7b66e265111bc556ba2d97b823f47de47d4ff2c9" have entirely different histories.
22b51e96bc
...
7b66e26511
@ -15,7 +15,7 @@ end
|
||||
|
||||
-- [[ vimtex ]]
|
||||
-- Some BÉPO mappings for vimtex
|
||||
local texgroup = vim.api.nvim_create_augroup("latex-after", { clear = true })
|
||||
local texgroup = vim.api.nvim_create_augroup("latex", { clear = true })
|
||||
|
||||
vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, {
|
||||
pattern = { "*.tex", "*.bib", "*.cls", "*.tikz", },
|
||||
@ -23,7 +23,7 @@ vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, {
|
||||
callback = function()
|
||||
local vimtex_remaps = {
|
||||
-- c <-> t
|
||||
{ mode = "n", source = "csd", target = "lsd", command = "<Plug>(vimtex-delim-change-math)" },
|
||||
{ mode = "n", source = "csd", target = "tsd", command = "<Plug>(vimtex-delim-change-math)" },
|
||||
{ mode = "n", source = "csc", target = "lsc", command = "<Plug>(vimtex-cmd-change)" },
|
||||
{ mode = "n", source = "cse", target = "lse", command = "<Plug>(vimtex-env-change)" },
|
||||
{ mode = "n", source = "cs$", target = "ls$", command = "<Plug>(vimtex-env-change-math))" },
|
||||
|
2
init.lua
2
init.lua
@ -63,7 +63,7 @@ require('complete')
|
||||
require('neorg-configure')
|
||||
|
||||
-- Customizations
|
||||
-- require('bepo')
|
||||
require('bepo')
|
||||
require('restore-position')
|
||||
require('autocommands')
|
||||
|
||||
|
@ -45,7 +45,6 @@ vim.api.nvim_create_autocmd("FileType", {
|
||||
callback = function()
|
||||
-- vimtex configuration
|
||||
vim.g.vimtex_view_method = 'zathura'
|
||||
vim.g.vimtex_view_general_viewer = 'zathura'
|
||||
vim.g.maplocalleader = ' '
|
||||
-- Legacy shortcut from my vim-latexsuite days
|
||||
vim.api.nvim_set_keymap("n", "<Leader>ls", ":VimtexView<CR>",
|
||||
|
@ -1,6 +1,6 @@
|
||||
local map_list = {
|
||||
["w|"] = ":vsplit", ["w-"] = ":split", -- w| / w- pour créer des splits verticaux et horizontaux
|
||||
["ge"] = ":bprevious", ["gn"] = ":bnext",
|
||||
["gi"] = ":bprevious", ["ge"] = ":bnext",
|
||||
["W"] = ":w", ["<C-t>"] = ":tabnew",
|
||||
}
|
||||
|
||||
|
@ -4,8 +4,8 @@ vim.defer_fn(function()
|
||||
require('nvim-treesitter.configs').setup {
|
||||
-- Add languages to be installed here that you want installed for treesitter
|
||||
ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'javascript', 'typescript', 'vimdoc', 'vim', 'bash' },
|
||||
ignore_install = {'latex', 'tex', 'markdown'},
|
||||
disable = {'latex', 'tex', 'markdown'},
|
||||
ignore_install = {'latex', 'markdown'},
|
||||
disable = {'latex', 'markdown'},
|
||||
|
||||
-- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!)
|
||||
auto_install = false,
|
||||
|
Loading…
Reference in New Issue
Block a user