mirror of
https://github.com/harivansh-afk/nvim.git
synced 2026-04-17 11:04:58 +00:00
git oil
This commit is contained in:
parent
1315fed7c0
commit
6123eac08d
2 changed files with 7 additions and 1 deletions
|
|
@ -19,6 +19,7 @@
|
||||||
"nvim-treesitter-textobjects": { "branch": "main", "commit": "a0e182ae21fda68c59d1f36c9ed45600aef50311" },
|
"nvim-treesitter-textobjects": { "branch": "main", "commit": "a0e182ae21fda68c59d1f36c9ed45600aef50311" },
|
||||||
"nvim-ufo": { "branch": "main", "commit": "ab3eb124062422d276fae49e0dd63b3ad1062cfc" },
|
"nvim-ufo": { "branch": "main", "commit": "ab3eb124062422d276fae49e0dd63b3ad1062cfc" },
|
||||||
"nvim-web-devicons": { "branch": "master", "commit": "746ffbb17975ebd6c40142362eee1b0249969c5c" },
|
"nvim-web-devicons": { "branch": "master", "commit": "746ffbb17975ebd6c40142362eee1b0249969c5c" },
|
||||||
|
"oil-git.nvim": { "branch": "main", "commit": "c99db7b1dd8dd500c3ec530dc07000dfbeb6e080" },
|
||||||
"oil.nvim": { "branch": "master", "commit": "f55b25e493a7df76371cfadd0ded5004cb9cd48a" },
|
"oil.nvim": { "branch": "master", "commit": "f55b25e493a7df76371cfadd0ded5004cb9cd48a" },
|
||||||
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
|
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
|
||||||
"promise-async": { "branch": "main", "commit": "119e8961014c9bfaf1487bf3c2a393d254f337e2" },
|
"promise-async": { "branch": "main", "commit": "119e8961014c9bfaf1487bf3c2a393d254f337e2" },
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,17 @@
|
||||||
return {
|
return {
|
||||||
"stevearc/oil.nvim",
|
"stevearc/oil.nvim",
|
||||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
dependencies = { "nvim-tree/nvim-web-devicons", "malewicz1337/oil-git.nvim" },
|
||||||
event = 'VeryLazy',
|
event = 'VeryLazy',
|
||||||
keys = {
|
keys = {
|
||||||
{ "-", "<cmd>Oil<cr>", desc = "Open parent directory" },
|
{ "-", "<cmd>Oil<cr>", desc = "Open parent directory" },
|
||||||
},
|
},
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
require("oil").setup(opts)
|
require("oil").setup(opts)
|
||||||
|
require("oil-git").setup({
|
||||||
|
show_ignored_files = false,
|
||||||
|
show_ignored_directories = false,
|
||||||
|
debounce_ms = 300,
|
||||||
|
})
|
||||||
vim.api.nvim_create_autocmd("BufEnter", {
|
vim.api.nvim_create_autocmd("BufEnter", {
|
||||||
pattern = "oil://*",
|
pattern = "oil://*",
|
||||||
callback = function()
|
callback = function()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue