dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit e22b513e386aca64539a59992713071b2b6680bb
parent b7d72d7d91a5ae9208da2f1d4cdbf2d00aa4eeb3
Author: Chris Bracken <chris@bracken.jp>
Date:   Sat, 31 Aug 2024 08:35:40 -0700

vim: use netrw instead of nvim-tree

It really isn't adding anything that vim doesn't already have, and
annoyingly requires nerdfont support.

Diffstat:
M.config/nvim/lazy-lock.json | 2--
M.config/nvim/lua/config/keymaps.lua | 6++++++
M.config/nvim/lua/plugins/utilities.lua | 28----------------------------
3 files changed, 6 insertions(+), 30 deletions(-)

diff --git a/.config/nvim/lazy-lock.json b/.config/nvim/lazy-lock.json @@ -11,8 +11,6 @@ "lspkind.nvim": { "branch": "master", "commit": "cff4ae321a91ee3473a92ea1a8c637e3a9510aec" }, "nvim-cmp": { "branch": "main", "commit": "ae644feb7b67bf1ce4260c231d1d4300b19c6f30" }, "nvim-lspconfig": { "branch": "master", "commit": "3ad562700d0615818bf358268ac8914f6ce2b079" }, - "nvim-tree.lua": { "branch": "master", "commit": "d43ab67d0eb4317961c5e9d15fffe908519debe0" }, - "nvim-web-devicons": { "branch": "master", "commit": "3722e3d1fb5fe1896a104eb489e8f8651260b520" }, "rust.vim": { "branch": "master", "commit": "889b9a7515db477f4cb6808bef1769e53493c578" }, "solarized-osaka.nvim": { "branch": "main", "commit": "126d394c0c979a99206214a2b6b8c86e456c9c0f" }, "trouble.nvim": { "branch": "main", "commit": "6efc446226679fda0547c0fd6a7892fd5f5b15d8" }, diff --git a/.config/nvim/lua/config/keymaps.lua b/.config/nvim/lua/config/keymaps.lua @@ -14,6 +14,12 @@ vim.keymap.set('t', '<Esc>', '<C-\\><C-n>') vim.keymap.set('v', '<', '<gv') vim.keymap.set('v', '>', '>gv') +-- Configure netrw. +vim.g.netrw_banner=0 +vim.g.netrw_liststyle=3 +vim.keymap.set('n', '<leader>ee', '<cmd>35Lexplore<CR>') +vim.keymap.set('n', '<leader>ef', '<cmd>35Lexplore %:p:h<CR>') + -- Configure fzf-lua. vim.keymap.set('n', '<leader>b', '<cmd>FzfLua buffers<CR>') vim.keymap.set('n', '<leader>fg', '<cmd>FzfLua grep<CR>') diff --git a/.config/nvim/lua/plugins/utilities.lua b/.config/nvim/lua/plugins/utilities.lua @@ -10,12 +10,10 @@ return { { "<leader>ql", "<cmd>Trouble lsp toggle focus=true win.size=0.3<cr>", desc = "LSP Definitions / references / ...", }, { "<leader>qs", "<cmd>Trouble symbols toggle focus=false win.size=0.3<cr>", desc = "Symbols", }, }, - dependencies = "nvim-tree/nvim-web-devicons", }, { "ibhagwan/fzf-lua", opts = {}, - dependencies = "nvim-tree/nvim-web-devicons", }, { "lewis6991/gitsigns.nvim", @@ -27,32 +25,6 @@ return { event = { "BufReadPre", "BufNewFile" }, }, { - "nvim-tree/nvim-tree.lua", - opts = { - filters = { - custom = { ".DS_Store" } - }, - renderer = { - indent_markers = { - enable = true, - }, - }, - view = { - width = 50, - }, - }, - init = function() - -- Disable default netrw explorer. - vim.g.loaded_netrw = 1 - vim.g.loaded_netrwPlugin = 1 - - vim.keymap.set("n", "<leader>ee", "<cmd>NvimTreeFindFileToggle<CR>") - vim.keymap.set("n", "<leader>ec", "<cmd>NvimTreeCollapse<CR>") - vim.keymap.set("n", "<leader>er", "<cmd>NvimTreeRefresh<CR>") - end, - dependencies = "nvim-tree/nvim-web-devicons", - }, - { "stevearc/dressing.nvim", opts = {}, event = "VeryLazy",