all repos

init.lua @ 9dcbab823a83cafdf2c31873d5d90fc843ffc1ce

my nvim config
2 files changed, 22 insertions(+), 13 deletions(-)
updated nvimtree config
Author: neoteny ss2316544@gmail.com
Committed at: 2021-11-01 11:35:13 +0200
Parent: 6706f7c
M lua/keymapings.lua

@@ -1,6 +1,6 @@

local u = require "utils" -local nmap, map, expr = u.nmap, u.map, u.expr --- map("i", "jk", "<ESC>") +local map, nmap, expr = u.map, u.nmap, u.expr + nmap("<C-s>", "<cmd>write!<cr>") nmap("<leader>h", "<cmd>nohlsearch<cr>") nmap("<leader>q", "<cmd>quit!<cr>")
M lua/plugin/configs/nvimtree.lua

@@ -3,18 +3,14 @@

function M.setup() local tree_cb = require("nvim-tree.config").nvim_tree_callback - vim.g.nvim_tree_ignore = { ".git", "node_modules", ".cache", ".bin" } - vim.g.nvim_tree_gitignore = 1 - vim.g.nvim_tree_quit_on_open = 0 - vim.g.nvim_tree_hide_dotfiles = 1 - vim.g.nvim_tree_git_hl = 1 - vim.g.nvim_tree_root_folder_modifier = ":t" - require("nvim-tree").setup { - auto_close = true, - update_cwd = true, + disable_netrw = true, + hijack_netrw = true, + auto_open = true, + update_cwd = false, + ignore_ft_on_setup = { ".git" }, diagnostics = { - enable = false, + enable = true, icons = { hint = "", info = "",

@@ -22,9 +18,13 @@ warning = "",

error = "", }, }, + filters = { + dotfiles = true, + custom = {}, + }, view = { width = 30, - side = "left", + side = "right", auto_resize = false, mappings = { custom_only = false,

@@ -36,6 +36,15 @@ },

}, }, } + + vim.g.nvim_tree_gitignore = 1 + vim.g.nvim_tree_root_folder_modifier = ":t" + + --[[ + vim.g.nvim_tree_ignore = { ".git", "node_modules", ".cache", ".bin" } + vim.g.nvim_tree_gitignore = 1 + vim.g.nvim_tree_hide_dotfiles = 1 + vim.g.nvim_tree_git_hl = 1]] end return M