From 3f7e2d33e393df1135af3a32eb75f2c4cad8bbd7 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 22 Jul 2022 18:15:48 +0300 Subject: nvim: update nvimtree config --- .config/nvim/lua/plugin_settings.lua | 72 +++++++++++------------------------- 1 file changed, 22 insertions(+), 50 deletions(-) diff --git a/.config/nvim/lua/plugin_settings.lua b/.config/nvim/lua/plugin_settings.lua index 840268c..41a663a 100644 --- a/.config/nvim/lua/plugin_settings.lua +++ b/.config/nvim/lua/plugin_settings.lua @@ -145,6 +145,13 @@ g.UltiSnipsSnippetDirectories = {"my_snippets", "UltiSnips"} g.vimtex_view_method = 'zathura' g.vimtex_quickfix_mode = 0 g.vimtex_quickfix_ignore_filters = {"Underfull", "Overfull"} + +g.vimtex_compiler_latexmk = { + options = { + "-pdf", '-shell-escape', '-verbose', '-file-line-error', '-synctex=1', '-interaction=nonstopmode' + } +} + -- }}} vimtex -- -- filetype.nvim {{{ -- @@ -409,24 +416,8 @@ npairs.add_rule(Rule('/*','*/',"c")) -- nvim-tree {{{ -- -require'nvim-tree'.setup { - disable_netrw = true, - hijack_netrw = true, - open_on_setup = false, - ignore_ft_on_setup = {}, - open_on_tab = false, - -- hijacks new directory buffers when they are opened. - update_to_buf_dir = { - -- enable the feature - enable = true, - -- allow to open the tree if it was previously closed - auto_open = true, - }, - -- hijack the cursor in the tree to put it at the start of the filename - hijack_cursor = false, - -- updates the root directory of the tree on `DirChanged` (when your run `:cd` usually) - update_cwd = true, - -- show lsp diagnostics in the signcolumn +require("nvim-tree").setup({ + sort_by = "case_sensitive", diagnostics = { enable = false, icons = { @@ -436,41 +427,22 @@ require'nvim-tree'.setup { error = "❌", } }, - -- update the focused file on `BufEnter`, un-collapses the folders recursively until it finds the file - update_focused_file = { - -- enables the feature - enable = false, - -- update the root directory of the tree to the one of the folder containing the file if the file is not under the current root directory - update_cwd = false, - -- list of buffer names / filetypes that will not update the cwd if the file isn't found under the current root directory - ignore_list = {} + view = { + adaptive_size = true, + mappings = { + list = { + { key = "u", action = "dir_up" }, + }, + }, + }, + renderer = { + group_empty = true, }, - -- configuration options for the system open command (`s` in the tree by default) - system_open = { - -- the command to run this, leaving nil should work in most cases - cmd = nil, - -- the command arguments as a list - args = {} + filters = { + dotfiles = true, }, +}) - view = { - -- width of the window, can be either a number (columns) or a string in `%`, for left or right side placement - width = 30, - -- height of the window, can be either a number (columns) or a string in `%`, for top or bottom side placement - height = 30, - -- side of the tree, can be one of 'left' | 'right' | 'top' | 'bottom' - side = 'left', - -- if true the tree will resize itself after opening a file - auto_resize = false, - mappings = { - -- custom only false will merge the list with the default mappings - -- if true, it will only use your list to set the mappings - custom_only = false, - -- list of mappings to set on the tree manually - list = {} - } - } -} -- }}} nvim-tree -- -- nvim-colorizer {{{ -- -- cgit v1.2.3-70-g09d2