feat: latex goodness in nvim and sioyek
This commit is contained in:
parent
937ab7e510
commit
57f8cc2fe7
3 changed files with 17 additions and 3 deletions
|
|
@ -48,6 +48,7 @@ add 'nvim-lua/plenary.nvim'
|
|||
add 'sindrets/diffview.nvim'
|
||||
add 'folke/which-key.nvim'
|
||||
add { source = 'saghen/blink.cmp', checkout = 'v1.8.0' }
|
||||
add { source = 'saghen/blink.compat', depends = { 'saghen/blink.cmp' } }
|
||||
add 'stevearc/conform.nvim'
|
||||
add 'coder/claudecode.nvim'
|
||||
add 'mbbill/undotree'
|
||||
|
|
@ -62,6 +63,7 @@ add 'nvim-treesitter/nvim-treesitter'
|
|||
add 'nvim-treesitter/nvim-treesitter-textobjects'
|
||||
add { source = 'nvim-pack/nvim-spectre', depends = { 'nvim-lua/plenary.nvim' } }
|
||||
add 'lervag/vimtex'
|
||||
add 'micangl/cmp-vimtex'
|
||||
|
||||
-- color themes
|
||||
add 'EdenEast/nightfox.nvim'
|
||||
|
|
@ -504,12 +506,19 @@ later(function()
|
|||
},
|
||||
sources = {
|
||||
default = { 'lsp', 'path', 'snippets', 'buffer', 'copilot' },
|
||||
per_filetype = {
|
||||
tex = { 'vimtex', 'lsp', 'path', 'snippets', 'buffer', 'copilot' },
|
||||
},
|
||||
providers = {
|
||||
copilot = {
|
||||
name = 'copilot',
|
||||
module = 'blink-copilot',
|
||||
async = true,
|
||||
},
|
||||
vimtex = {
|
||||
name = 'vimtex',
|
||||
module = 'blink.compat.source',
|
||||
},
|
||||
},
|
||||
},
|
||||
completion = {
|
||||
|
|
|
|||
|
|
@ -13,7 +13,8 @@ function M.setup()
|
|||
-- Compiler settings
|
||||
vim.g.vimtex_compiler_method = 'latexmk'
|
||||
vim.g.vimtex_compiler_latexmk = {
|
||||
build_dir = 'build',
|
||||
aux_dir = 'build',
|
||||
out_dir = 'build',
|
||||
callback = 1,
|
||||
continuous = 1,
|
||||
executable = 'latexmk',
|
||||
|
|
@ -25,6 +26,9 @@ function M.setup()
|
|||
},
|
||||
}
|
||||
|
||||
-- Auto-open viewer on compile
|
||||
vim.g.vimtex_view_automatic = 1
|
||||
|
||||
-- Quickfix settings
|
||||
vim.g.vimtex_quickfix_mode = 0 -- Don't open quickfix automatically
|
||||
|
||||
|
|
|
|||
|
|
@ -35,9 +35,10 @@ page_separator_color 0.1569 0.2078 0.2431
|
|||
ui_background_color 0.0157 0.0824 0.1255
|
||||
ui_text_color 0.7451 0.8118 0.8549
|
||||
|
||||
# Startup - use custom color mode and enable synctex by default
|
||||
# Startup - enable synctex by default, start in white mode (toggle dark with C-r or C-i)
|
||||
should_launch_new_window 0
|
||||
startup_commands toggle_custom_color;toggle_synctex
|
||||
# startup_commands toggle_custom_color;toggle_synctex
|
||||
startup_commands toggle_synctex
|
||||
|
||||
# Smooth scrolling
|
||||
smooth_scroll_speed 3.0
|
||||
|
|
|
|||
Loading…
Reference in a new issue