From 6a4294e773ea29a70b522cdd39e0e7fbdc6a3b0b Mon Sep 17 00:00:00 2001 From: pml68 Date: Tue, 4 Jun 2024 13:52:05 +0200 Subject: feat(Oil): add float options, change e to open in floating mode --- lua/pml68/lazy.lua | 3 +++ lua/pml68/plugins.lua | 9 +++++++++ lua/pml68/remap.lua | 2 +- lua/pml68/settings.lua | 1 + 4 files changed, 14 insertions(+), 1 deletion(-) (limited to 'lua/pml68') diff --git a/lua/pml68/lazy.lua b/lua/pml68/lazy.lua index 41e1acb..4514e39 100644 --- a/lua/pml68/lazy.lua +++ b/lua/pml68/lazy.lua @@ -15,6 +15,9 @@ local plugins = require("pml68.plugins") require("lazy").setup(plugins, { defaults = { lazy = true }, + change_detection = { + notify = false, + }, performance = { cache = { enabled = true, diff --git a/lua/pml68/plugins.lua b/lua/pml68/plugins.lua index 067bf06..ce66b1b 100644 --- a/lua/pml68/plugins.lua +++ b/lua/pml68/plugins.lua @@ -47,6 +47,15 @@ local plugins = { view_options = { show_hidden = true, }, + float = { + padding = 2, + max_width = 50, + max_height = 0, + border = "single", + win_options = { + winblend = 0, + }, + }, }) end }, diff --git a/lua/pml68/remap.lua b/lua/pml68/remap.lua index 46c71e6..465fd3f 100644 --- a/lua/pml68/remap.lua +++ b/lua/pml68/remap.lua @@ -1,5 +1,5 @@ vim.g.mapleader = " " -vim.keymap.set("n", "e", "Oil") +vim.keymap.set("n", "e", "Oil --float") vim.keymap.set("n", "n", "set nu!") vim.keymap.set("n", "rn", "set rnu!") vim.keymap.set("n", "", "nohl") diff --git a/lua/pml68/settings.lua b/lua/pml68/settings.lua index 62aae61..8a27b6a 100644 --- a/lua/pml68/settings.lua +++ b/lua/pml68/settings.lua @@ -13,6 +13,7 @@ vim.o.mouse = "a" vim.o.smartindent = true vim.o.swapfile = false +vim.o.backup = false vim.o.scrolloff = 10 vim.o.cursorline = false -- cgit v1.2.3