mirror of
https://github.com/iofq/nvim.nix.git
synced 2026-01-23 08:55:16 -06:00
use kickstart-nix
This commit is contained in:
parent
53bfda8bcd
commit
b33413dd18
36 changed files with 1291 additions and 519 deletions
23
nvim/plugin/oil.lua
Normal file
23
nvim/plugin/oil.lua
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
if vim.g.did_load_oil_plugin then
|
||||
return
|
||||
end
|
||||
vim.g.did_load_oil_plugin = true
|
||||
|
||||
local oil = require('oil')
|
||||
oil.setup({
|
||||
watch_for_changes = true,
|
||||
columns = {
|
||||
"permissions",
|
||||
"size"
|
||||
},
|
||||
view_options = {
|
||||
show_hidden = true
|
||||
},
|
||||
keymaps = {
|
||||
["wq"] = "actions.close"
|
||||
}
|
||||
})
|
||||
vim.keymap.set("n", "<leader>c", oil.toggle_float, {noremap = true, silent = true});
|
||||
vim.keymap.set("n", "<leader>u", "<cmd>UndotreeToggle<cr>")
|
||||
vim.g.undotree_ShortIndicators = 1
|
||||
vim.g.undotree_SetFocusWhenToggle = 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue