Add vimtex and neotree
This commit is contained in:
parent
27c979a03b
commit
573c28d0d9
4 changed files with 65 additions and 15 deletions
|
|
@ -10,6 +10,20 @@ return {
|
|||
"MunifTanjim/nui.nvim",
|
||||
},
|
||||
config = function ()
|
||||
require('neo-tree').setup {}
|
||||
require('neo-tree').setup{
|
||||
filesystem = {
|
||||
filtered_items = {
|
||||
visible = true, -- when true, they will just be displayed differently than normal items
|
||||
hide_dotfiles = true,
|
||||
hide_hidden = true,
|
||||
hide_gitignored = true,
|
||||
never_show = {
|
||||
".git",
|
||||
".github"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end,
|
||||
vim.keymap.set('n', '<leader>ft', '<Cmd>Neotree toggle<CR>', {desc = "Open File Tree"})
|
||||
}
|
||||
|
|
|
|||
5
lua/custom/plugins/terminal.lua
Normal file
5
lua/custom/plugins/terminal.lua
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
return {
|
||||
'akinsho/toggleterm.nvim', version = "*", config = true,
|
||||
|
||||
vim.keymap.set('n', '<C-j>', '<Cmd>ToggleTerm<CR>')
|
||||
}
|
||||
29
lua/custom/plugins/vimtex.lua
Normal file
29
lua/custom/plugins/vimtex.lua
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
-- File: lua/custom/plugins/vimtex.lua
|
||||
|
||||
return {
|
||||
'lervag/vimtex',
|
||||
config = function()
|
||||
-- vimtex configurations
|
||||
vim.g.vimtex_compiler_latexmk = {
|
||||
build_dir = 'build',
|
||||
executable = 'latexmk',
|
||||
options = {
|
||||
'-pdf',
|
||||
'-interaction=nonstopmode',
|
||||
'-synctex=1',
|
||||
},
|
||||
}
|
||||
|
||||
-- Enable automatic compilation on save
|
||||
vim.g.vimtex_autocompile = {
|
||||
continuous = 1,
|
||||
on_insert_leave = 1,
|
||||
}
|
||||
|
||||
-- Enable PDF preview using your favorite PDF viewer
|
||||
vim.g.vimtex_view_method = 'zathura'
|
||||
-- vim.g.vimtex_view_general_viewer = 'okular'
|
||||
-- vim.g.vimtex_view_general_options = '--unique file:@pdf\\#src:@line@tex'
|
||||
end,
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue