diff options
| author | pml68 <tutorialmester@gmail.com> | 2024-05-28 16:19:14 +0200 |
|---|---|---|
| committer | pml68 <tutorialmester@gmail.com> | 2024-05-28 16:19:32 +0200 |
| commit | ffbab12f95793cdc29ab7a5eafd7932a7f325131 (patch) | |
| tree | 08257739d2d2dba24b3a408336c7923b9e3a877a | |
| parent | feat: remove UndoTree and fugitive.vim plugins (diff) | |
| download | nvim-ffbab12f95793cdc29ab7a5eafd7932a7f325131.tar.gz | |
feat: switch from netrw to oil.nvim
| -rw-r--r-- | lua/pml68/lazy.lua | 1 | ||||
| -rw-r--r-- | lua/pml68/plugins.lua | 21 | ||||
| -rw-r--r-- | lua/pml68/remap.lua | 2 | ||||
| -rw-r--r-- | lua/pml68/settings.lua | 4 |
4 files changed, 21 insertions, 7 deletions
diff --git a/lua/pml68/lazy.lua b/lua/pml68/lazy.lua index 48c04a6..41e1acb 100644 --- a/lua/pml68/lazy.lua +++ b/lua/pml68/lazy.lua @@ -29,6 +29,7 @@ require("lazy").setup(plugins, { "tutor", "zipPlugin", "osc52", + "netrwPlugin", }, }, }, diff --git a/lua/pml68/plugins.lua b/lua/pml68/plugins.lua index aff3802..2eec022 100644 --- a/lua/pml68/plugins.lua +++ b/lua/pml68/plugins.lua @@ -1,5 +1,22 @@ local plugins = { - --Colorizer + -- Oil.nvim + { + "stevearc/oil.nvim", + cmd = "Oil", + dependencies = { "nvim-tree/nvim-web-devicons" }, + config = function() + require("oil").setup({ + columns = { "icon" }, + keymaps = { + ["<C-h>"] = false, + }, + view_options = { + show_hidden = true, + }, + }) + end + }, + --Color highlighting { "brenoprata10/nvim-highlight-colors", event = "BufReadPost", @@ -217,7 +234,7 @@ local plugins = { }, --PKL { - "https://github.com/apple/pkl-neovim", + "apple/pkl-neovim", event = "BufReadPre *.pkl", dependencies = { "nvim-treesitter/nvim-treesitter" diff --git a/lua/pml68/remap.lua b/lua/pml68/remap.lua index 8eb5ce4..3130b61 100644 --- a/lua/pml68/remap.lua +++ b/lua/pml68/remap.lua @@ -1,5 +1,5 @@ vim.g.mapleader = " " -vim.keymap.set("n", "<leader>e", vim.cmd.Ex) +vim.keymap.set("n", "<leader>e", "<cmd>Oil<CR>") vim.keymap.set("n", "<leader>n", "<cmd>set nu!<CR>") vim.keymap.set("n", "<leader>rn", "<cmd>set rnu!<CR>") vim.keymap.set("n", "<Esc>", "<cmd>nohl<CR>") diff --git a/lua/pml68/settings.lua b/lua/pml68/settings.lua index 6b71b1f..f244a8f 100644 --- a/lua/pml68/settings.lua +++ b/lua/pml68/settings.lua @@ -21,10 +21,6 @@ vim.o.clipboard = "unnamedplus" vim.opt.whichwrap:append "<>[]hl" -vim.g.netrw_browse_split = 0 -vim.g.netrw_banner = 0 -vim.g.netrw_winsize = 25 - vim.o.foldmethod = "expr" vim.o.foldexpr = "v:lua.vim.treesitter.foldexpr()" |
