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