tex changes
This commit is contained in:
+206
-184
@@ -4,205 +4,227 @@ local function import(name)
|
||||
return ([[require '%s']]):format(name)
|
||||
end
|
||||
|
||||
return require('packer').startup({ function(use)
|
||||
use 'wbthomason/packer.nvim'
|
||||
return require('packer').startup({
|
||||
function(use)
|
||||
use 'wbthomason/packer.nvim'
|
||||
|
||||
use {
|
||||
'vim-airline/vim-airline',
|
||||
requires = {
|
||||
'ryanoasis/vim-devicons',
|
||||
}
|
||||
}
|
||||
|
||||
use {
|
||||
'mustache/vim-mustache-handlebars'
|
||||
}
|
||||
|
||||
use {
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
run = ':TSUpdate'
|
||||
}
|
||||
|
||||
use {
|
||||
'petRUShka/vim-sage'
|
||||
}
|
||||
|
||||
use {
|
||||
'evanleck/vim-svelte'
|
||||
}
|
||||
|
||||
use {
|
||||
'wuelnerdotexe/vim-astro'
|
||||
}
|
||||
|
||||
use {
|
||||
'tpope/vim-fugitive',
|
||||
config = function()
|
||||
local map = vim.api.nvim_set_keymap
|
||||
map('n', '<Leader>g', '<Cmd>Git<CR>', { noremap = true })
|
||||
end,
|
||||
}
|
||||
|
||||
use {
|
||||
'tpope/vim-surround',
|
||||
}
|
||||
|
||||
use {
|
||||
'tpope/vim-repeat',
|
||||
}
|
||||
|
||||
use {
|
||||
'lewis6991/gitsigns.nvim',
|
||||
requires = {
|
||||
'nvim-lua/plenary.nvim'
|
||||
},
|
||||
config = function()
|
||||
require('gitsigns').setup {
|
||||
signs = {
|
||||
add = { hl = 'GitSignsAdd', text = '│', numhl = 'GitSignsAddNr', linehl = 'GitSignsAddLn' },
|
||||
change = { hl = 'GitSignsChange', text = '│', numhl = 'GitSignsChangeNr',
|
||||
linehl = 'GitSignsChangeLn' },
|
||||
delete = { hl = 'GitSignsDelete', text = '_', numhl = 'GitSignsDeleteNr',
|
||||
linehl = 'GitSignsDeleteLn' },
|
||||
topdelete = { hl = 'GitSignsDelete', text = '‾', numhl = 'GitSignsDeleteNr',
|
||||
linehl = 'GitSignsDeleteLn' },
|
||||
changedelete = { hl = 'GitSignsChange', text = '~', numhl = 'GitSignsChangeNr',
|
||||
linehl = 'GitSignsChangeLn' },
|
||||
},
|
||||
use {
|
||||
'vim-airline/vim-airline',
|
||||
requires = {
|
||||
'ryanoasis/vim-devicons',
|
||||
}
|
||||
end
|
||||
}
|
||||
}
|
||||
|
||||
use {
|
||||
'akinsho/flutter-tools.nvim',
|
||||
requires = {
|
||||
'nvim-lua/plenary.nvim'
|
||||
},
|
||||
config = function()
|
||||
require('flutter-tools').setup {
|
||||
lsp = {
|
||||
color = {
|
||||
enabled = false
|
||||
use {
|
||||
'mustache/vim-mustache-handlebars'
|
||||
}
|
||||
|
||||
use {
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
run = ':TSUpdate'
|
||||
}
|
||||
|
||||
use {
|
||||
'petRUShka/vim-sage'
|
||||
}
|
||||
|
||||
use {
|
||||
'evanleck/vim-svelte'
|
||||
}
|
||||
|
||||
use {
|
||||
'wuelnerdotexe/vim-astro'
|
||||
}
|
||||
|
||||
use {
|
||||
'tpope/vim-fugitive',
|
||||
config = function()
|
||||
local map = vim.api.nvim_set_keymap
|
||||
map('n', '<Leader>g', '<Cmd>Git<CR>', { noremap = true })
|
||||
end,
|
||||
}
|
||||
|
||||
use {
|
||||
'tpope/vim-surround',
|
||||
}
|
||||
|
||||
use {
|
||||
'tpope/vim-repeat',
|
||||
}
|
||||
|
||||
use {
|
||||
'lewis6991/gitsigns.nvim',
|
||||
requires = {
|
||||
'nvim-lua/plenary.nvim'
|
||||
},
|
||||
config = function()
|
||||
require('gitsigns').setup {
|
||||
signs = {
|
||||
add = {
|
||||
hl = 'GitSignsAdd',
|
||||
text = '│',
|
||||
numhl = 'GitSignsAddNr',
|
||||
linehl = 'GitSignsAddLn'
|
||||
},
|
||||
change = {
|
||||
hl = 'GitSignsChange',
|
||||
text = '│',
|
||||
numhl = 'GitSignsChangeNr',
|
||||
linehl = 'GitSignsChangeLn'
|
||||
},
|
||||
delete = {
|
||||
hl = 'GitSignsDelete',
|
||||
text = '_',
|
||||
numhl = 'GitSignsDeleteNr',
|
||||
linehl = 'GitSignsDeleteLn'
|
||||
},
|
||||
topdelete = {
|
||||
hl = 'GitSignsDelete',
|
||||
text = '‾',
|
||||
numhl = 'GitSignsDeleteNr',
|
||||
linehl = 'GitSignsDeleteLn'
|
||||
},
|
||||
changedelete = {
|
||||
hl = 'GitSignsChange',
|
||||
text = '~',
|
||||
numhl = 'GitSignsChangeNr',
|
||||
linehl = 'GitSignsChangeLn'
|
||||
},
|
||||
},
|
||||
}
|
||||
end
|
||||
}
|
||||
|
||||
use {
|
||||
'akinsho/flutter-tools.nvim',
|
||||
requires = {
|
||||
'nvim-lua/plenary.nvim'
|
||||
},
|
||||
config = function()
|
||||
require('flutter-tools').setup {
|
||||
lsp = {
|
||||
color = {
|
||||
enabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
}
|
||||
end
|
||||
}
|
||||
|
||||
use {
|
||||
'numToStr/Comment.nvim',
|
||||
config = function()
|
||||
local map = vim.api.nvim_set_keymap
|
||||
require('Comment').setup({})
|
||||
map('n', '<C-_>',
|
||||
'<Cmd>lua require("Comment.api").toggle_linewise_op(vim.fn.visualmode())<CR>',
|
||||
{ noremap = true, silent = true })
|
||||
end
|
||||
}
|
||||
use {
|
||||
'numToStr/Comment.nvim',
|
||||
config = function()
|
||||
local map = vim.api.nvim_set_keymap
|
||||
require('Comment').setup({})
|
||||
map('n', '<C-_>',
|
||||
'<Cmd>lua require("Comment.api").toggle_linewise_op(vim.fn.visualmode())<CR>',
|
||||
{ noremap = true, silent = true })
|
||||
end
|
||||
}
|
||||
|
||||
use {
|
||||
'nvim-telescope/telescope.nvim',
|
||||
requires = {
|
||||
'nvim-lua/plenary.nvim',
|
||||
{
|
||||
'nvim-telescope/telescope-fzf-native.nvim',
|
||||
run = 'make',
|
||||
use {
|
||||
'nvim-telescope/telescope.nvim',
|
||||
requires = {
|
||||
'nvim-lua/plenary.nvim',
|
||||
{
|
||||
'nvim-telescope/telescope-fzf-native.nvim',
|
||||
run = 'make',
|
||||
},
|
||||
'nvim-telescope/telescope-symbols.nvim',
|
||||
},
|
||||
'nvim-telescope/telescope-symbols.nvim',
|
||||
},
|
||||
config = import('tel'),
|
||||
}
|
||||
config = import('tel'),
|
||||
}
|
||||
|
||||
use {
|
||||
'stevearc/dressing.nvim',
|
||||
config = function()
|
||||
require('dressing').setup({
|
||||
input = {
|
||||
default_prompt = '❯',
|
||||
win_options = {
|
||||
winhighlight = 'NormalFloat:Normal',
|
||||
use {
|
||||
'stevearc/dressing.nvim',
|
||||
config = function()
|
||||
require('dressing').setup({
|
||||
input = {
|
||||
default_prompt = '❯',
|
||||
win_options = {
|
||||
winhighlight = 'NormalFloat:Normal',
|
||||
},
|
||||
},
|
||||
})
|
||||
vim.cmd [[highlight link FloatTitle NonText]]
|
||||
vim.cmd [[highlight link DressingInputText Normal]]
|
||||
end,
|
||||
}
|
||||
|
||||
use {
|
||||
'antoinemadec/FixCursorHold.nvim',
|
||||
config = function()
|
||||
vim.g.cursorhold_updatetime = 500
|
||||
end,
|
||||
}
|
||||
|
||||
use {
|
||||
'sirver/ultisnips',
|
||||
ft = { 'latex', 'plaintex', 'tex' },
|
||||
config = function()
|
||||
vim.g.UltiSnipsExpandTrigger = '<tab>'
|
||||
vim.g.UltiSnipsJumpForwardTrigger = '<c-h>'
|
||||
vim.g.UltiSnipsJumpBackwardTrigger = '<c-b>'
|
||||
end
|
||||
}
|
||||
|
||||
use {
|
||||
'neovim/nvim-lspconfig',
|
||||
-- commit = "607ff48b970b89c3e4e3825b88d9cfd05b7aaea5",
|
||||
requires = {
|
||||
'nvim-lua/lsp-status.nvim',
|
||||
{
|
||||
'ms-jpq/coq.thirdparty',
|
||||
},
|
||||
{
|
||||
'ms-jpq/coq_nvim',
|
||||
run = ':COQdeps',
|
||||
requires = {
|
||||
'ms-jpq/coq.artifacts',
|
||||
},
|
||||
},
|
||||
})
|
||||
vim.cmd [[highlight link FloatTitle NonText]]
|
||||
vim.cmd [[highlight link DressingInputText Normal]]
|
||||
end,
|
||||
}
|
||||
|
||||
use {
|
||||
'antoinemadec/FixCursorHold.nvim',
|
||||
config = function()
|
||||
vim.g.cursorhold_updatetime = 500
|
||||
end,
|
||||
}
|
||||
|
||||
use {
|
||||
'sirver/ultisnips',
|
||||
ft = { 'latex', 'plaintex', 'tex' },
|
||||
config = function()
|
||||
vim.g.UltiSnipsExpandTrigger = '<tab>'
|
||||
vim.g.UltiSnipsJumpForwardTrigger = '<c-h>'
|
||||
vim.g.UltiSnipsJumpBackwardTrigger = '<c-b>'
|
||||
end
|
||||
}
|
||||
|
||||
use {
|
||||
'neovim/nvim-lspconfig',
|
||||
-- commit = "607ff48b970b89c3e4e3825b88d9cfd05b7aaea5",
|
||||
requires = {
|
||||
'nvim-lua/lsp-status.nvim',
|
||||
{
|
||||
'ms-jpq/coq.thirdparty',
|
||||
},
|
||||
{
|
||||
'ms-jpq/coq_nvim',
|
||||
run = ':COQdeps',
|
||||
requires = {
|
||||
'ms-jpq/coq.artifacts',
|
||||
{
|
||||
'jose-elias-alvarez/null-ls.nvim',
|
||||
requires = {
|
||||
'nvim-lua/plenary.nvim',
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
'jose-elias-alvarez/null-ls.nvim',
|
||||
requires = {
|
||||
'nvim-lua/plenary.nvim',
|
||||
},
|
||||
},
|
||||
},
|
||||
config = import('lsp'),
|
||||
}
|
||||
config = import('lsp'),
|
||||
}
|
||||
|
||||
use {
|
||||
'lervag/vimtex',
|
||||
config = function()
|
||||
vim.g.vimtex_view_general_viewer = 'zathura'
|
||||
vim.g.vimtex_compiler_method = "latexmk"
|
||||
-- vim.g.vimtex_view_general_options = = '-x nvim -n -c "Vimtex'
|
||||
-- 'file:@pdf\\#src:@line@tex'
|
||||
-- vim.g.vimtex_quickfix_enabled = 0
|
||||
-- vim.g.Tex_GotoError = 0
|
||||
-- vim.g.Tex_ShowErrorContext = 0
|
||||
end,
|
||||
}
|
||||
use {
|
||||
'lervag/vimtex',
|
||||
config = function()
|
||||
vim.g.vimtex_view_general_viewer = 'zathura'
|
||||
vim.g.vimtex_compiler_method = "latexmk"
|
||||
-- vim.g.vimtex_view_general_options = = '-x nvim -n -c "Vimtex'
|
||||
-- 'file:@pdf\\#src:@line@tex'
|
||||
-- vim.g.vimtex_quickfix_enabled = 0
|
||||
-- vim.g.Tex_GotoError = 0
|
||||
-- vim.g.Tex_ShowErrorContext = 0
|
||||
end,
|
||||
}
|
||||
|
||||
use {
|
||||
'iamcco/markdown-preview.nvim',
|
||||
commit = "02cc3874738bc0f86e4b91f09b8a0ac88aef8e96",
|
||||
run = "cd app && npm install",
|
||||
setup = function() vim.g.mkdp_filetypes = { "markdown" } end, ft = { "markdown" },
|
||||
config = function()
|
||||
local map = vim.api.nvim_set_keymap
|
||||
map('n', '<C-m>', '<Plug>MarkdownPreviewToggle', {})
|
||||
map('n', '<Leader>m', '<Plug>MarkdownPreviewToggle', {})
|
||||
vim.g.mkdp_markdown_css = os.getenv("HOME") .. "/.config/nvim/lua/markdownStyle.css"
|
||||
vim.g.mkdp_highlight_css = os.getenv("HOME") .. "/.cache/wal/colors.css"
|
||||
use {
|
||||
'iamcco/markdown-preview.nvim',
|
||||
commit = "02cc3874738bc0f86e4b91f09b8a0ac88aef8e96",
|
||||
run = "cd app && npm install",
|
||||
setup = function() vim.g.mkdp_filetypes = { "markdown" } end, ft = { "markdown" },
|
||||
config = function()
|
||||
local map = vim.api.nvim_set_keymap
|
||||
map('n', '<C-m>', '<Plug>MarkdownPreviewToggle', {})
|
||||
map('n', '<Leader>m', '<Plug>MarkdownPreviewToggle', {})
|
||||
vim.g.mkdp_markdown_css = os.getenv("HOME") .. "/.config/nvim/lua/markdownStyle.css"
|
||||
vim.g.mkdp_highlight_css = os.getenv("HOME") .. "/.cache/wal/colors.css"
|
||||
end
|
||||
}
|
||||
|
||||
if bootstrap.is_bootstrap then
|
||||
require('packer').sync()
|
||||
end
|
||||
}
|
||||
|
||||
if bootstrap.is_bootstrap then
|
||||
require('packer').sync()
|
||||
end
|
||||
|
||||
end,
|
||||
end,
|
||||
config = {
|
||||
compile_path = require('packer.util').join_paths(vim.fn.stdpath('data'), 'site', 'plugin', 'packer_compiled.lua'),
|
||||
} })
|
||||
}
|
||||
})
|
||||
|
||||
@@ -67,6 +67,15 @@ snippet table "Table" b
|
||||
\end{table} $0
|
||||
endsnippet
|
||||
|
||||
snippet algorithm "Algorithm" b
|
||||
\begin{algorithm}[${1:H}]
|
||||
\caption{$2}\label{tab:$3}
|
||||
\begin{algorithmic}[${4:1}]
|
||||
$5
|
||||
\end{algorithmic}
|
||||
\end{algorithm} $0
|
||||
endsnippet
|
||||
|
||||
priority 100
|
||||
snippet ... "Ldots" iA
|
||||
\ldots
|
||||
@@ -80,6 +89,10 @@ snippet section "Section" bA
|
||||
\sect{$1}$0
|
||||
endsnippet
|
||||
|
||||
snippet subsection "Subsection" bA
|
||||
\subsect{$1}$0
|
||||
endsnippet
|
||||
|
||||
snippet chapter "Chapter" bA
|
||||
\chapter{$1}$0
|
||||
endsnippet
|
||||
@@ -130,11 +143,6 @@ snippet ali "Align" bA
|
||||
\end{align*} $0
|
||||
endsnippet
|
||||
|
||||
context "math()"
|
||||
snippet \\\ "Backslash" Ai
|
||||
\backslash
|
||||
endsnippet
|
||||
|
||||
context "math()"
|
||||
snippet => "Implies" Ai
|
||||
\implies
|
||||
@@ -211,6 +219,12 @@ snippet -> "To" iA
|
||||
\to
|
||||
endsnippet
|
||||
|
||||
priority 100
|
||||
context "math()"
|
||||
snippet -< "Gets" iA
|
||||
\gets
|
||||
endsnippet
|
||||
|
||||
priority 200
|
||||
context "math()"
|
||||
snippet <-> "Leftrightarrow" iA
|
||||
@@ -347,7 +361,7 @@ endsnippet
|
||||
|
||||
context "math()"
|
||||
snippet case "Cases" wA
|
||||
\begin{case}
|
||||
\begin{cases}
|
||||
$1
|
||||
\end{cases} $0
|
||||
endsnippet
|
||||
@@ -732,6 +746,16 @@ snippet AA "For all" iA
|
||||
\forall
|
||||
endsnippet
|
||||
|
||||
context "math()"
|
||||
snippet "such that" "Such that" iA
|
||||
\suchthat
|
||||
endsnippet
|
||||
|
||||
context "math()"
|
||||
snippet "suchthat" "Suchthat" iA
|
||||
\suchthat
|
||||
endsnippet
|
||||
|
||||
snippet image "Image" wA
|
||||
\begin{figure}[${1:h}]
|
||||
\includegraphics[width=${2:0.5}\textwidth]{$3}
|
||||
@@ -750,8 +774,7 @@ snippet plot "Plot" w
|
||||
\addplot[domain=$2:$3, samples=${6:100}]{$7};
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
||||
\caption{$8}
|
||||
\label{${9:$8}}
|
||||
\caption{$8}\label{plot:$9}
|
||||
\end{figure} $0
|
||||
endsnippet
|
||||
|
||||
@@ -795,7 +818,7 @@ else:
|
||||
endsnippet
|
||||
|
||||
snippet ssc "Inline Code" wA
|
||||
\inlinecode{${1}}{${2}}`!p
|
||||
{\inlinecode{${1}}{${2}}}`!p
|
||||
if t[2] and t[2][0] not in [',', '.', '?', '-', ' ']:
|
||||
snip.rv = ' '
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user