MacOS Nix

Asahi is just not perfectly usable yet.
Moved stuff, went nix.
This commit is contained in:
venomade committed 2026-02-16 17:31:16 +00:00
1 parent 9d2c3f898a
commit a568a964fd
80 files changed
+260 -1516

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
return {
'stevearc/oil.nvim',
dependencies = { "nvim-tree/nvim-web-devicons" },
config = function()
function _G.get_oil_winbar()
local bufnr = vim.api.nvim_win_get_buf(vim.g.statusline_winid)
local dir = require("oil").get_current_dir(bufnr)
if dir then
return vim.fn.fnamemodify(dir, ":~")
else
-- If there is no current directory (e.g. over ssh), just show the buffer name
return vim.api.nvim_buf_get_name(0)
end
end
require('oil').setup({
win_options = {
winbar = "%!v:lua.get_oil_winbar()",
},
view_options = {
show_hidden = true
}
})
vim.keymap.set('n', '-', '<CMD>Oil<CR>', {desc = "Open Dir in Oil"})
end,
lazy = false,
}