feat: ✨ yazi to oil
This commit is contained in:
parent
a8802d5393
commit
678bad568b
14 changed files with 43 additions and 23 deletions
|
@ -17,7 +17,8 @@ vim.keymap.set("n", ";", require("fzf-lua").diagnostics_workspace, {})
|
|||
|
||||
|
||||
vim.keymap.set({ "n", "i", "v" }, "<C-s>", format_and_save)
|
||||
vim.keymap.set({ "n", "v" }, "<CR>", "<cmd>Yazi<CR>", { noremap = true, silent = true, })
|
||||
vim.keymap.set({ "n", "v" }, "-", "<cmd>Oil<CR>", { noremap = true, silent = true, })
|
||||
-- terminal exit close remap
|
||||
vim.keymap.set("t", "<ESC>e", "<C-\\><C-n>", { noremap = true })
|
||||
|
||||
vim.keymap.set("n", "<F5>", function() require("dap").continue() end)
|
||||
|
|
|
@ -18,3 +18,4 @@ vim.lsp.inlay_hint.enable()
|
|||
vim.g.loaded_netrwPlugin = 0
|
||||
|
||||
vim.opt.termguicolors = true
|
||||
vim.opt.splitright = true
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
return {
|
||||
"saghen/blink.cmp",
|
||||
version = '*',
|
||||
build = "cargo build --release",
|
||||
opts = {
|
||||
keymap = {
|
||||
["<cr>"] = { "accept", "fallback" },
|
||||
|
@ -34,6 +34,6 @@ return {
|
|||
},
|
||||
signature = {
|
||||
enabled = true,
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
@ -9,6 +9,7 @@ return {
|
|||
"ruff",
|
||||
"pyright",
|
||||
"cssls",
|
||||
"html",
|
||||
},
|
||||
})
|
||||
end,
|
||||
|
|
|
@ -36,5 +36,6 @@ return {
|
|||
capabilities = capabilities,
|
||||
})
|
||||
lspconfig["cssls"].setup({ capabilities = capabilities })
|
||||
lspconfig["html"].setup({ capabilities = capabilities })
|
||||
end
|
||||
}
|
||||
|
|
13
.config/nvim/lua/plugins/oil.lua
Normal file
13
.config/nvim/lua/plugins/oil.lua
Normal file
|
@ -0,0 +1,13 @@
|
|||
return {
|
||||
"stevearc/oil.nvim",
|
||||
config = function()
|
||||
require("oil").setup({
|
||||
view_options = {
|
||||
show_hidden = true,
|
||||
},
|
||||
float = {
|
||||
preview_split = "right",
|
||||
},
|
||||
})
|
||||
end
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
return {
|
||||
"mikavilpas/yazi.nvim"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue