From a28f5183d80d9f25495b0f99420a3fb5b459f00b Mon Sep 17 00:00:00 2001 From: Ray Andrew <4437323+rayandrew@users.noreply.github.com> Date: Tue, 17 Oct 2023 23:29:08 -0500 Subject: [PATCH] update config --- lazy-lock.json | 2 -- lua/rayandrew/plugins.lua | 44 +++++++++++++++++++-------------------- lua/rayandrew/remap.lua | 12 ++++++++++- 3 files changed, 33 insertions(+), 25 deletions(-) diff --git a/lazy-lock.json b/lazy-lock.json index ff4c31f..007d2bb 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -27,8 +27,6 @@ "nabla.nvim": { "branch": "master", "commit": "8c143ad2b3ab3b8ffbd51e238ccfcbd246452a7e" }, "neoconf.nvim": { "branch": "main", "commit": "c87c862a14a4c8c0e2bc823d304e4da472fd7180" }, "neodev.nvim": { "branch": "main", "commit": "24b403eabde652904077f84fd55441744e77a109" }, - "neorg": { "branch": "main", "commit": "7c4e09d39d6be4494e8c2980a55837d982c8ef4b" }, - "neorg-telescope": { "branch": "main", "commit": "1310d4aaefd8149c9839bbe1d5610e94389e2f0e" }, "null-ls.nvim": { "branch": "main", "commit": "0010ea927ab7c09ef0ce9bf28c2b573fc302f5a7" }, "nvim-bqf": { "branch": "main", "commit": "8784eebf34371049b641646d00232c2603215297" }, "nvim-cmp": { "branch": "main", "commit": "5dce1b778b85c717f6614e3f4da45e9f19f54435" }, diff --git a/lua/rayandrew/plugins.lua b/lua/rayandrew/plugins.lua index 5947147..10e1ad1 100644 --- a/lua/rayandrew/plugins.lua +++ b/lua/rayandrew/plugins.lua @@ -484,29 +484,29 @@ return { main = "ibl", event = { "BufReadPost", "BufNewFile" }, opts = { - -- char = "▏", - char = "│", - filetype_exclude = { - "help", - "alpha", - "dashboard", - "neo-tree", - "Trouble", - "lazy", - "mason", - "notify", - "toggleterm", - "lazyterm", - "qf", + indent = { char = "│" }, + scope = { enabled = true }, + exclude = { + buftypes = { + "terminal", + "nofile", + "quickfix", + "prompt", + }, + filetypes = { + "help", + "alpha", + "dashboard", + "neo-tree", + "Trouble", + "lazy", + "mason", + "notify", + "toggleterm", + "lazyterm", + "qf", + }, }, - buftype_exclude = { - "terminal", - "nofile", - "quickfix", - "prompt", - }, - show_trailing_blankline_indent = false, - show_current_context = false, }, }, diff --git a/lua/rayandrew/remap.lua b/lua/rayandrew/remap.lua index 68764d9..455b42e 100644 --- a/lua/rayandrew/remap.lua +++ b/lua/rayandrew/remap.lua @@ -161,7 +161,7 @@ Util.map("t", "", "close", { desc = "Hide Terminal" }) Util.map("t", "", "close", { desc = "which_key_ignore" }) ------------------------------ --- Others +-- Netrw ------------------------------ -- netrw @@ -169,6 +169,16 @@ Util.map("n", "e", function() vim.cmd("Ex") end) +-- remap q to quit buffer in netrw +vim.api.nvim_create_autocmd("FileType", { + pattern = "netrw", + command = "nnoremap q bd", +}) + +------------------------------ +-- Others +------------------------------ + -- ufo Util.map("n", "zR", function() require("ufo").openAllFolds()