fix: modify nvim-tree
This commit is contained in:
@@ -12,7 +12,9 @@ local function my_on_attach(bufnr)
|
||||
vim.keymap.set('n', '<C-t>', api.tree.change_root_to_parent, opts('Up'))
|
||||
vim.keymap.set('n', '?', api.tree.toggle_help, opts('Help'))
|
||||
vim.keymap.set('n', 'l', api.node.open.edit, opts('Edit'))
|
||||
vim.keymap.set('n', 'h', api.node.navigate.parent_close, opts('Parent Close'))
|
||||
vim.keymap.set('n', 'h', api.node.navigate.parent_close, opts('Parent Close'))
|
||||
vim.keymap.set('n', 's', api.node.open.horizontal, opts('Horizontal Split'))
|
||||
vim.keymap.set('n', 'v', api.node.open.vertical, opts('Vertical Split'))
|
||||
end
|
||||
|
||||
require'nvim-tree'.setup {
|
||||
@@ -34,7 +36,7 @@ require'nvim-tree'.setup {
|
||||
enable = true,
|
||||
-- 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
|
||||
-- only relevant when `update_focused_file.enable` is true
|
||||
update_cwd = true,
|
||||
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
|
||||
-- only relevant when `update_focused_file.update_cwd` is true and `update_focused_file.enable` is true
|
||||
ignore_list = {}
|
||||
|
||||
@@ -203,13 +203,14 @@ return require("packer").startup(function(use)
|
||||
}
|
||||
|
||||
-- markdown
|
||||
use { 'godlygeek/tabular' }
|
||||
use { 'preservim/vim-markdown' }
|
||||
use {
|
||||
'iamcco/markdown-preview.nvim',
|
||||
run = function() vim.fn['mkdp#util#install']() end,
|
||||
ft = { 'markdown' }
|
||||
}
|
||||
-- use { 'godlygeek/tabular' }
|
||||
-- use { 'preservim/vim-markdown' }
|
||||
|
||||
-- use {
|
||||
-- 'iamcco/markdown-preview.nvim',
|
||||
-- run = function() vim.fn['mkdp#util#install']() end,
|
||||
-- ft = { 'markdown' }
|
||||
-- }
|
||||
|
||||
use {'tpope/vim-fugitive'}
|
||||
|
||||
|
||||
@@ -41,6 +41,7 @@ vim.cmd('filetype plugin on') -- filetype detection
|
||||
vim.o.guifont = "FiraCode Nerd Font:h17"
|
||||
|
||||
-- vim.o.guifont = "JetBrains\\ Mono\\ Regular\\ Nerd\\ Font\\ Complete"
|
||||
vim.g.vim_markdown_folding_disabled = 1
|
||||
|
||||
vim.g.vimspector_enable_mappings = 'HUMAN'
|
||||
vim.g['test#go#rspec#options'] = { nearest= '--v', suite= '--v' }
|
||||
|
||||
Reference in New Issue
Block a user