mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 22:22:40 +00:00
feat: Adds oil.nvim and removes neo-tree
This commit is contained in:
@@ -1,26 +1,26 @@
|
|||||||
return {
|
-- return {
|
||||||
"nvim-neo-tree/neo-tree.nvim",
|
-- "nvim-neo-tree/neo-tree.nvim",
|
||||||
branch = "v3.x",
|
-- branch = "v3.x",
|
||||||
dependencies = {
|
-- dependencies = {
|
||||||
"nvim-lua/plenary.nvim",
|
-- "nvim-lua/plenary.nvim",
|
||||||
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
|
-- "nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
|
||||||
"MunifTanjim/nui.nvim",
|
-- "MunifTanjim/nui.nvim",
|
||||||
},
|
-- },
|
||||||
opts = {
|
-- opts = {
|
||||||
close_if_last_window = false,
|
-- close_if_last_window = false,
|
||||||
enable_git_status = true,
|
-- enable_git_status = true,
|
||||||
enable_diagnostics = true,
|
-- enable_diagnostics = true,
|
||||||
filesystem = {
|
-- filesystem = {
|
||||||
always_show = {
|
-- always_show = {
|
||||||
"plugins",
|
-- "plugins",
|
||||||
".zshrc",
|
-- ".zshrc",
|
||||||
".zshenv",
|
-- ".zshenv",
|
||||||
"*.env"
|
-- "*.env"
|
||||||
},
|
-- },
|
||||||
filtered_items = {
|
-- filtered_items = {
|
||||||
hide_dotfiles = false
|
-- hide_dotfiles = false
|
||||||
},
|
-- },
|
||||||
use_libuv_file_watcher = true
|
-- use_libuv_file_watcher = true
|
||||||
},
|
-- },
|
||||||
}
|
-- }
|
||||||
}
|
-- }
|
||||||
|
|||||||
29
nvim/m-housh/lua/user/plugin/oil.lua
Normal file
29
nvim/m-housh/lua/user/plugin/oil.lua
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
return {
|
||||||
|
"stevearc/oil.nvim",
|
||||||
|
dependencies = {
|
||||||
|
"nvim-tree/nvim-web-devicons",
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
require("oil").setup({
|
||||||
|
columns = { "icon" },
|
||||||
|
keymaps = {
|
||||||
|
["<C-h>"] = false,
|
||||||
|
["<M-h>"] = "actions.select_split",
|
||||||
|
},
|
||||||
|
view_options = {
|
||||||
|
--show_hidden = true,
|
||||||
|
is_hidden_file = function(name, bufnr)
|
||||||
|
-- Don't show .DS_STORE in output.
|
||||||
|
local is_ds_store = name ~= ".DS_Store"
|
||||||
|
return not is_ds_store
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Show the parent directory in current window.
|
||||||
|
vim.keymap.set("n", "-", "<CMD>Oil<CR>", { desc = "Open parent directory." })
|
||||||
|
|
||||||
|
-- Open parent directory in floating window.
|
||||||
|
vim.keymap.set("n", "<space>-", require("oil").toggle_float)
|
||||||
|
end,
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user