save
This commit is contained in:
@@ -2,18 +2,17 @@ require("vxclutch.set")
|
||||
require("vxclutch.remap")
|
||||
require("vxclutch.lazy_init")
|
||||
|
||||
|
||||
local augroup = vim.api.nvim_create_augroup
|
||||
local autocmd = vim.api.nvim_create_autocmd
|
||||
local VxclutchGroup = augroup('Vxclutch', {})
|
||||
local VxclutchGroup = augroup("Vxclutch", {})
|
||||
|
||||
autocmd('BufEnter', {
|
||||
group = VxclutchGroup,
|
||||
callback = function()
|
||||
if vim.bo.filetype == "zig" then
|
||||
vim.cmd.colorscheme("tokyonight-night")
|
||||
else
|
||||
vim.cmd.colorscheme("rose-pine-moon")
|
||||
end
|
||||
end
|
||||
autocmd("BufEnter", {
|
||||
group = VxclutchGroup,
|
||||
callback = function()
|
||||
if vim.bo.filetype == "zig" then
|
||||
vim.cmd.colorscheme("tokyonight-night")
|
||||
else
|
||||
vim.cmd.colorscheme("rose-pine-moon")
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
@@ -1,26 +1,37 @@
|
||||
return {
|
||||
"stevearc/oil.nvim",
|
||||
opts = {},
|
||||
config = function()
|
||||
require("oil").setup {
|
||||
default_file_explorer = true,
|
||||
delete_to_trash = true,
|
||||
skip_confirm_for_simple_edits = true,
|
||||
use_default_keymaps = true,
|
||||
keymaps = {
|
||||
["g?"] = { "actions.show_help", mode = "n" },
|
||||
["<CR>"] = "actions.select",
|
||||
["-"] = { "actions.parent", mode = "n" },
|
||||
["g."] = { "actions.toggle_hidden", mode = "n" },
|
||||
},
|
||||
view_options = {
|
||||
show_hidden = true,
|
||||
natural_order = true,
|
||||
is_always_hidden = function(name, _)
|
||||
return name == ".." or name == ".git"
|
||||
end,
|
||||
},
|
||||
}
|
||||
end,
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
"stevearc/oil.nvim",
|
||||
opts = {},
|
||||
config = function()
|
||||
require("oil").setup({
|
||||
default_file_explorer = true,
|
||||
delete_to_trash = true,
|
||||
skip_confirm_for_simple_edits = true,
|
||||
use_default_keymaps = true,
|
||||
keymaps = {
|
||||
["g?"] = { "actions.show_help", mode = "n" },
|
||||
["<CR>"] = { "actions.select" },
|
||||
["<C-s>"] = false,
|
||||
["<C-h>"] = false,
|
||||
["<C-t>"] = false,
|
||||
["<C-p>"] = false,
|
||||
["<C-c>"] = false,
|
||||
["<C-r>"] = { "actions.refresh" },
|
||||
["-"] = { "actions.parent", mode = "n" },
|
||||
["_"] = { "actions.open_cwd", mode = "n" },
|
||||
["<leader>d"] = { "actions.cd", mode = "n" },
|
||||
["~"] = { "actions.cd", opts = { scope = "tab" }, mode = "n" },
|
||||
["gs"] = false,
|
||||
["gx"] = { "actions.open_external" },
|
||||
["g."] = { "actions.toggle_hidden", mode = "n" },
|
||||
},
|
||||
view_options = {
|
||||
show_hidden = true,
|
||||
natural_order = true,
|
||||
is_always_hidden = function(name, _)
|
||||
return name == ".." or name == ".git"
|
||||
end,
|
||||
},
|
||||
})
|
||||
end,
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
}
|
||||
|
||||
@@ -37,4 +37,4 @@ vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
|
||||
vim.opt.undofile = true
|
||||
|
||||
-- Statusline --
|
||||
vim.o.statusline = "%f"
|
||||
vim.o.statusline = "%f %m"
|
||||
|
||||
Reference in New Issue
Block a user