From becfa7961fd226b5b83b3572c13ce3bd8c469995 Mon Sep 17 00:00:00 2001 From: Michael Peters Date: Mon, 26 Sep 2022 17:47:23 -0700 Subject: [PATCH] show git files, better indent-blankline --- lua/configs/indent-blankline.lua | 47 ++++---------------------------- lua/configs/null-ls.lua | 4 +-- lua/configs/nvim-tree.lua | 6 ++-- 3 files changed, 10 insertions(+), 47 deletions(-) diff --git a/lua/configs/indent-blankline.lua b/lua/configs/indent-blankline.lua index fd37498..92026b1 100644 --- a/lua/configs/indent-blankline.lua +++ b/lua/configs/indent-blankline.lua @@ -6,52 +6,15 @@ function M.config() return end - vim.g.indentLine_enabled = 1 - vim.g.indent_blankline_show_trailing_blankline_indent = false - vim.g.indent_blankline_show_first_indent_level = true - vim.g.indent_blankline_use_treesitter = true - vim.g.indent_blankline_char = "▏" - vim.g.indent_blankline_buftype_exclude = { - "nofile", - "terminal", - "lsp-installer", - "lspinfo", - } - vim.g.indent_blankline_filetype_exclude = { - "help", - "startify", - "dashboard", - "packer", - "neogitstatus", - "NvimTree", - "Trouble", - } - vim.g.indent_blankline_context_patterns = { - "class", - "return", - "function", - "method", - "^if", - "^while", - "jsx_element", - "^for", - "^object", - "^table", - "block", - "arguments", - "if_statement", - "else_clause", - "jsx_element", - "jsx_self_closing_element", - "try_statement", - "catch_clause", - "import_statement", - "operation_type", - } + -- vim.opt.list = true + -- vim.opt.listchars:append "space:⋅" + -- vim.opt.listchars:append "eol:↴" indent_blankline.setup { show_current_context = false, show_current_context_start = false, + -- show_end_of_line = true, + -- space_char_blankline = " ", } end diff --git a/lua/configs/null-ls.lua b/lua/configs/null-ls.lua index 14eeb9d..60f2cce 100644 --- a/lua/configs/null-ls.lua +++ b/lua/configs/null-ls.lua @@ -18,11 +18,11 @@ function M.config() debug = false, sources = { -- Set a formatter - formatting.prettierd, + --formatting.prettierd, --TODO: formatting.black, -- Set a linter - diagnostics.eslint_d, + --diagnostics.eslint_d, --TODO: pylint }, -- Format before save diff --git a/lua/configs/nvim-tree.lua b/lua/configs/nvim-tree.lua index 806c613..7193290 100644 --- a/lua/configs/nvim-tree.lua +++ b/lua/configs/nvim-tree.lua @@ -10,9 +10,9 @@ function M.config() filters = { dotfiles = false, custom = { - ".git", - "node_modules", - ".cache", + ".git/", + "node_modules/", + ".cache/", }, }, view = {