diff --git a/lua/plugins/configs/nvimtree.lua b/lua/plugins/configs/nvimtree.lua index b47ecc2..95b0319 100644 --- a/lua/plugins/configs/nvimtree.lua +++ b/lua/plugins/configs/nvimtree.lua @@ -12,7 +12,6 @@ vim.o.termguicolors = true g.nvim_tree_add_trailing = 0 -- append a trailing slash to folder names g.nvim_tree_git_hl = git_status g.nvim_tree_gitignore = 0 -g.nvim_tree_hide_dotfiles = 0 g.nvim_tree_highlight_opened_files = 0 g.nvim_tree_indent_markers = 1 g.nvim_tree_ignore = { ".git", "node_modules", ".cache" } @@ -61,6 +60,9 @@ nvimtree.setup { error = "", }, }, + filters = { + dotfiles = false, + }, disable_netrw = true, hijack_netrw = true, ignore_ft_on_setup = { "dashboard" }, diff --git a/lua/plugins/configs/others.lua b/lua/plugins/configs/others.lua index 2235130..af24c60 100644 --- a/lua/plugins/configs/others.lua +++ b/lua/plugins/configs/others.lua @@ -3,7 +3,7 @@ local M = {} local chadrc_config = require("core.utils").load_config() M.autopairs = function() local present1, autopairs = pcall(require, "nvim-autopairs") - local present2, autopairs_completion = pcall(require, "nvim-autopairs.completion.cmp") + local present2, cmp_autopairs = pcall(require, "nvim-autopairs.completion.cmp") if not (present1 or present2) then return @@ -12,11 +12,8 @@ M.autopairs = function() autopairs.setup() -- not needed if you disable cmp, the above var related to cmp tooo! override default config for autopairs - - autopairs_completion.setup { - map_complete = true, -- insert () func completion - map_cr = true, - } + local cmp = require "cmp" + cmp.event:on("confirm_done", cmp_autopairs.on_confirm_done()) end M.better_escape = function()