Split plugin options into multiple files

This commit is contained in:
flyingscorpio@clevo 2022-08-06 10:52:57 +02:00
parent 173d7c9252
commit 9021c22ea5
6 changed files with 31 additions and 20 deletions

View file

@ -0,0 +1,6 @@
-- PLUGINS - OPTIONS
-- indentLine
-- vim.g.indentLine_char = '▏'
vim.g.indentLine_fileType = { 'html', 'htmldjango', 'tex' }
vim.g.indentLine_setConceal = 0

View file

@ -0,0 +1,7 @@
-- PLUGINS - OPTIONS
require('plugins.options.lsp')
require('plugins.options.treesitter')
require('plugins.options.nerdtree')
require('plugins.options.vimtex')
require('plugins.options.indentline')

View file

@ -0,0 +1,6 @@
-- LSP - OPTIONS
-- LSP Servers
require('lsp.bash')
require('lsp.latex')
require('lsp.lua')

View file

@ -0,0 +1,5 @@
-- PLUGINS - OPTIONS
-- NERDTree
vim.g.NERDTreeIgnore = { '^__pycache__$', '\\.pyc', '\\~$' }
vim.keymap.set('n', '<leader>ne', '<cmd>NERDTree<CR>', { remap = true })

View file

@ -1,10 +1,5 @@
-- PLUGINS - OPTIONS
-- LSP Servers
require('lsp.bash')
require('lsp.latex')
require('lsp.lua')
-- Treesitter
require'nvim-treesitter.configs'.setup {
-- A list of parser names, or "all"
@ -39,18 +34,3 @@ require'nvim-treesitter.configs'.setup {
}
vim.opt.foldmethod = 'expr'
vim.opt.foldexpr = 'nvim_treesitter#foldexpr()'
-- NERDTree
vim.g.NERDTreeIgnore = { '^__pycache__$', '\\.pyc', '\\~$' }
vim.keymap.set('n', '<leader>ne', '<cmd>NERDTree<CR>', { remap = true })
-- VimTex
vim.g.tex_flavor = 'latex'
vim.g.vimtex_view_method = 'zathura'
vim.g.vimtex_quickfix_autoclose_after_keystrokes = 2
vim.g.vimtex_quickfix_open_on_warning = 0
-- indentLine
-- vim.g.indentLine_char = '▏'
vim.g.indentLine_fileType = { 'html', 'htmldjango', 'tex' }
vim.g.indentLine_setConceal = 0

View file

@ -0,0 +1,7 @@
-- PLUGINS - OPTIONS
-- VimTex
vim.g.tex_flavor = 'latex'
vim.g.vimtex_view_method = 'zathura'
vim.g.vimtex_quickfix_autoclose_after_keystrokes = 2
vim.g.vimtex_quickfix_open_on_warning = 0