Split plugin options into multiple files
This commit is contained in:
parent
173d7c9252
commit
9021c22ea5
6 changed files with 31 additions and 20 deletions
6
roles/neovim/files/lua/plugins/options/indentline.lua
Normal file
6
roles/neovim/files/lua/plugins/options/indentline.lua
Normal file
|
@ -0,0 +1,6 @@
|
|||
-- PLUGINS - OPTIONS
|
||||
|
||||
-- indentLine
|
||||
-- vim.g.indentLine_char = '▏'
|
||||
vim.g.indentLine_fileType = { 'html', 'htmldjango', 'tex' }
|
||||
vim.g.indentLine_setConceal = 0
|
7
roles/neovim/files/lua/plugins/options/init.lua
Normal file
7
roles/neovim/files/lua/plugins/options/init.lua
Normal 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')
|
6
roles/neovim/files/lua/plugins/options/lsp.lua
Normal file
6
roles/neovim/files/lua/plugins/options/lsp.lua
Normal file
|
@ -0,0 +1,6 @@
|
|||
-- LSP - OPTIONS
|
||||
|
||||
-- LSP Servers
|
||||
require('lsp.bash')
|
||||
require('lsp.latex')
|
||||
require('lsp.lua')
|
5
roles/neovim/files/lua/plugins/options/nerdtree.lua
Normal file
5
roles/neovim/files/lua/plugins/options/nerdtree.lua
Normal file
|
@ -0,0 +1,5 @@
|
|||
-- PLUGINS - OPTIONS
|
||||
|
||||
-- NERDTree
|
||||
vim.g.NERDTreeIgnore = { '^__pycache__$', '\\.pyc', '\\~$' }
|
||||
vim.keymap.set('n', '<leader>ne', '<cmd>NERDTree<CR>', { remap = true })
|
|
@ -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
|
7
roles/neovim/files/lua/plugins/options/vimtex.lua
Normal file
7
roles/neovim/files/lua/plugins/options/vimtex.lua
Normal 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
|
Loading…
Add table
Reference in a new issue