diff options
| author | pml68 <tutorialmester@gmail.com> | 2024-04-09 21:36:59 +0200 |
|---|---|---|
| committer | pml68 <tutorialmester@gmail.com> | 2024-04-09 21:36:59 +0200 |
| commit | f0674b6a5337476bd0652a9e9f3c27198296773f (patch) | |
| tree | 91e3d8923b280b5b00c207fadb0c7df8509e1d6a | |
| parent | feat: remove ESC remap for closing terminal (diff) | |
| download | nvim-f0674b6a5337476bd0652a9e9f3c27198296773f.tar.gz | |
feat: add VimTex plugin
| -rw-r--r-- | lua/pml68/configs/cmp.lua | 3 | ||||
| -rw-r--r-- | lua/pml68/plugins.lua | 14 |
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 |
