diff options
| author | Yigit Sever | 2022-07-22 18:15:48 +0300 |
|---|---|---|
| committer | Yigit Sever | 2022-07-22 18:15:48 +0300 |
| commit | 3f7e2d33e393df1135af3a32eb75f2c4cad8bbd7 (patch) | |
| tree | 00b70cd842d291800c271c9829d235ab0919aaa6 /.config | |
| parent | 37118f4a486fa448600ebe8081b88cd5f91b8f00 (diff) | |
| download | dotfiles-3f7e2d33e393df1135af3a32eb75f2c4cad8bbd7.tar.gz dotfiles-3f7e2d33e393df1135af3a32eb75f2c4cad8bbd7.tar.bz2 dotfiles-3f7e2d33e393df1135af3a32eb75f2c4cad8bbd7.zip | |
nvim: update nvimtree config
Diffstat (limited to '.config')
| -rw-r--r-- | .config/nvim/lua/plugin_settings.lua | 72 |
1 files 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"} | |||
| 145 | g.vimtex_view_method = 'zathura' | 145 | g.vimtex_view_method = 'zathura' |
| 146 | g.vimtex_quickfix_mode = 0 | 146 | g.vimtex_quickfix_mode = 0 |
| 147 | g.vimtex_quickfix_ignore_filters = {"Underfull", "Overfull"} | 147 | g.vimtex_quickfix_ignore_filters = {"Underfull", "Overfull"} |
| 148 | |||
| 149 | g.vimtex_compiler_latexmk = { | ||
| 150 | options = { | ||
| 151 | "-pdf", '-shell-escape', '-verbose', '-file-line-error', '-synctex=1', '-interaction=nonstopmode' | ||
| 152 | } | ||
| 153 | } | ||
| 154 | |||
| 148 | -- }}} vimtex -- | 155 | -- }}} vimtex -- |
| 149 | 156 | ||
| 150 | -- filetype.nvim {{{ -- | 157 | -- filetype.nvim {{{ -- |
| @@ -409,24 +416,8 @@ npairs.add_rule(Rule('/*','*/',"c")) | |||
| 409 | 416 | ||
| 410 | -- nvim-tree {{{ -- | 417 | -- nvim-tree {{{ -- |
| 411 | 418 | ||
| 412 | require'nvim-tree'.setup { | 419 | require("nvim-tree").setup({ |
| 413 | disable_netrw = true, | 420 | sort_by = "case_sensitive", |
| 414 | hijack_netrw = true, | ||
| 415 | open_on_setup = false, | ||
| 416 | ignore_ft_on_setup = {}, | ||
| 417 | open_on_tab = false, | ||
| 418 | -- hijacks new directory buffers when they are opened. | ||
| 419 | update_to_buf_dir = { | ||
| 420 | -- enable the feature | ||
| 421 | enable = true, | ||
| 422 | -- allow to open the tree if it was previously closed | ||
| 423 | auto_open = true, | ||
| 424 | }, | ||
| 425 | -- hijack the cursor in the tree to put it at the start of the filename | ||
| 426 | hijack_cursor = false, | ||
| 427 | -- updates the root directory of the tree on `DirChanged` (when your run `:cd` usually) | ||
| 428 | update_cwd = true, | ||
| 429 | -- show lsp diagnostics in the signcolumn | ||
| 430 | diagnostics = { | 421 | diagnostics = { |
| 431 | enable = false, | 422 | enable = false, |
| 432 | icons = { | 423 | icons = { |
| @@ -436,41 +427,22 @@ require'nvim-tree'.setup { | |||
| 436 | error = "❌", | 427 | error = "❌", |
| 437 | } | 428 | } |
| 438 | }, | 429 | }, |
| 439 | -- update the focused file on `BufEnter`, un-collapses the folders recursively until it finds the file | 430 | view = { |
| 440 | update_focused_file = { | 431 | adaptive_size = true, |
| 441 | -- enables the feature | 432 | mappings = { |
| 442 | enable = false, | 433 | list = { |
| 443 | -- 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 | 434 | { key = "u", action = "dir_up" }, |
| 444 | update_cwd = false, | 435 | }, |
| 445 | -- list of buffer names / filetypes that will not update the cwd if the file isn't found under the current root directory | 436 | }, |
| 446 | ignore_list = {} | 437 | }, |
| 438 | renderer = { | ||
| 439 | group_empty = true, | ||
| 447 | }, | 440 | }, |
| 448 | -- configuration options for the system open command (`s` in the tree by default) | 441 | filters = { |
| 449 | system_open = { | 442 | dotfiles = true, |
| 450 | -- the command to run this, leaving nil should work in most cases | ||
| 451 | cmd = nil, | ||
| 452 | -- the command arguments as a list | ||
| 453 | args = {} | ||
| 454 | }, | 443 | }, |
| 444 | }) | ||
| 455 | 445 | ||
| 456 | view = { | ||
| 457 | -- width of the window, can be either a number (columns) or a string in `%`, for left or right side placement | ||
| 458 | width = 30, | ||
| 459 | -- height of the window, can be either a number (columns) or a string in `%`, for top or bottom side placement | ||
| 460 | height = 30, | ||
| 461 | -- side of the tree, can be one of 'left' | 'right' | 'top' | 'bottom' | ||
| 462 | side = 'left', | ||
| 463 | -- if true the tree will resize itself after opening a file | ||
| 464 | auto_resize = false, | ||
| 465 | mappings = { | ||
| 466 | -- custom only false will merge the list with the default mappings | ||
| 467 | -- if true, it will only use your list to set the mappings | ||
| 468 | custom_only = false, | ||
| 469 | -- list of mappings to set on the tree manually | ||
| 470 | list = {} | ||
| 471 | } | ||
| 472 | } | ||
| 473 | } | ||
| 474 | -- }}} nvim-tree -- | 446 | -- }}} nvim-tree -- |
| 475 | 447 | ||
| 476 | -- nvim-colorizer {{{ -- | 448 | -- nvim-colorizer {{{ -- |
