1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
-- Plugins
return {
-- Telescope
{
'nvim-telescope/telescope.nvim', tag = '0.1.8',
-- or , branch = '0.1.x',
dependencies = { 'nvim-lua/plenary.nvim' }
},
-- LSP
-- LaTeX
{
"lervag/vimtex",
ft = "tex",
init = function()
-- Use Zathura as the PDF viewer
vim.g.vimtex_view_method = "zathura"
-- Compile using latexmk automatically
vim.g.vimtex_compiler_method = "latexmk"
vim.g.vimtex_compiler_latexmk = {
build_dir = "build", -- optional: keep files in a separate folder
callback = 1,
continuous = 1, -- automatically recompile on save
executable = "latexmk",
options = {
"-pdf",
"-interaction=nonstopmode",
"-synctex=1",
},
}
-- Optional: disable conceal for clearer LaTeX text
vim.g.vimtex_syntax_conceal = {
accents = 0,
ligatures = 0,
cites = 0,
fancy = 0,
spacing = 0,
greek = 0,
math_delimiters = 0,
math_super_sub = 0,
}
end,
},
-- LSP support
{
"neovim/nvim-lspconfig",
config = function()
require("lspconfig").texlab.setup({})
end,
},
-- Autocompletion (optional)
{ "hrsh7th/nvim-cmp" },
{ "hrsh7th/cmp-nvim-lsp" },
-- Snippets (optional)
{ "L3MON4D3/LuaSnip" },
-- Grammar & spell checking
{ "rhysd/vim-grammarous", ft = "tex" },
-- Tab Bar
{'romgrk/barbar.nvim',
dependencies = {
'lewis6991/gitsigns.nvim', -- OPTIONAL: for git status
'nvim-tree/nvim-web-devicons', -- OPTIONAL: for file icons
},
init = function() vim.g.barbar_auto_setup = false end,
opts = {
-- lazy.nvim will automatically call setup for you. put your options here, anything missing will use the default:
-- animation = true,
-- insert_at_start = true,
-- …etc.
},
version = '^1.0.0', -- optional: only update when a new 1.x version is released
},
-- Dashboard
{
'nvimdev/dashboard-nvim',
event = 'VimEnter',
config = function()
require('dashboard').setup {
-- config
}
end,
dependencies = { {'nvim-tree/nvim-web-devicons'}}
},
-- THEMES
"martinsione/darkplus.nvim",
"folke/tokyonight.nvim",
"navarasu/onedark.nvim"
}
|