Public Access
better oil coloring
This commit is contained in:
@@ -18,6 +18,7 @@ local function set_oil_git_highlights()
|
||||
vim.api.nvim_set_hl(0, "OilGitCopied", { link = "MiniDiffSignChange" })
|
||||
vim.api.nvim_set_hl(0, "OilGitDeleted", { link = "MiniDiffSignDelete" })
|
||||
vim.api.nvim_set_hl(0, "OilGitConflict", { link = "MiniDiffSignDelete" })
|
||||
vim.api.nvim_set_hl(0, "OilGitIgnored", { link = "Comment" })
|
||||
end
|
||||
|
||||
require("oil").setup({
|
||||
@@ -34,8 +35,8 @@ require("oil").setup({
|
||||
},
|
||||
view_options = {
|
||||
show_hidden = true,
|
||||
is_hidden_file = function(name, _)
|
||||
return vim.startswith(name, ".")
|
||||
is_hidden_file = function(_, _)
|
||||
return false
|
||||
end,
|
||||
is_always_hidden = function(name, _)
|
||||
return name == ".git"
|
||||
@@ -46,6 +47,8 @@ require("oil").setup({
|
||||
require("oil-git").setup({
|
||||
show_file_highlights = true,
|
||||
show_directory_highlights = true,
|
||||
show_ignored_files = true,
|
||||
show_ignored_directories = true,
|
||||
show_file_symbols = true,
|
||||
show_directory_symbols = true,
|
||||
symbol_position = "none",
|
||||
|
||||
Reference in New Issue
Block a user