aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorpml68 <tutorialmester@gmail.com>2024-04-09 21:36:59 +0200
committerpml68 <tutorialmester@gmail.com>2024-04-09 21:36:59 +0200
commitf0674b6a5337476bd0652a9e9f3c27198296773f (patch)
tree91e3d8923b280b5b00c207fadb0c7df8509e1d6a /lua
parentfeat: remove ESC remap for closing terminal (diff)
downloadnvim-f0674b6a5337476bd0652a9e9f3c27198296773f.tar.gz
feat: add VimTex plugin
Diffstat (limited to '')
-rw-r--r--lua/pml68/configs/cmp.lua3
-rw-r--r--lua/pml68/plugins.lua14
2 files changed, 13 insertions, 4 deletions
diff --git a/lua/pml68/configs/cmp.lua b/lua/pml68/configs/cmp.lua
index 185c528..5954499 100644
--- a/lua/pml68/configs/cmp.lua
+++ b/lua/pml68/configs/cmp.lua
@@ -3,8 +3,9 @@ local cmp = require("cmp")
cmp.setup({
sources = {
{name = 'nvim_lsp'},
+ {name = 'path'},
+ {name = 'vimtex'},
{name = 'crates'},
- {name = 'path'}
},
window = {
completion = {
diff --git a/lua/pml68/plugins.lua b/lua/pml68/plugins.lua
index 010543d..2c2e843 100644
--- a/lua/pml68/plugins.lua
+++ b/lua/pml68/plugins.lua
@@ -25,9 +25,9 @@ local plugins = {
event = "InsertEnter",
dependencies = {
{
- "L3MON4D3/LuaSnip",
- dependencies = "rafamadriz/friendly-snippets",
- },
+ "L3MON4D3/LuaSnip",
+ dependencies = "rafamadriz/friendly-snippets"
+ },
{
"windwp/nvim-autopairs",
opts = {
@@ -322,6 +322,14 @@ local plugins = {
end)
end
},
+ {
+ "lervag/vimtex",
+ lazy = false,
+ dependencies = "micangl/cmp-vimtex",
+ init = function()
+ vim.g.vimtex_view_method = 'mupdf'
+ end
+ },
}
return plugins