just gonna put the changes that I can remember making here: - replace blink with native completion (omnifunc) - remove some unneeded plugins - add a misc function for making sure complex bindings don't cause flickering - remove some stale snippets - remove folding (I don't find myself folding that often)
41 lines
1.0 KiB
Lua
41 lines
1.0 KiB
Lua
local map = core.misc.map
|
|
|
|
local permission_hlgroups = {
|
|
["-"] = "NonText",
|
|
["r"] = "DiagnosticSignWarn",
|
|
["w"] = "DiagnosticSignHint",
|
|
["x"] = "DiagnosticSignOk",
|
|
}
|
|
|
|
return { "stevearc/oil.nvim",
|
|
lazy = dep_short.keymap("n", "-"),
|
|
load = function()
|
|
require("oil").setup {
|
|
-- ID is automatically added at the beginning, and name at the end
|
|
-- See :help oil-columns
|
|
columns = {
|
|
{
|
|
"permissions",
|
|
highlight = function(permission_str)
|
|
local hls = {}
|
|
for i = 1, #permission_str do
|
|
local char = permission_str:sub(i, i)
|
|
table.insert(hls, { permission_hlgroups[char], i - 1, i })
|
|
end
|
|
return hls
|
|
end,
|
|
},
|
|
{ "size", highlight = "@number" }
|
|
},
|
|
|
|
-- fix the damn border
|
|
confirmation = { border = vim.o.winborder },
|
|
progress = { border = vim.o.winborder },
|
|
ssh = { border = vim.o.winborder },
|
|
keymaps_help = { border = vim.o.winborder }
|
|
}
|
|
|
|
map("n", "-", "<cmd>Oil<CR>")
|
|
end
|
|
}
|