diff options
| author | pml68 <pml31@protonmail.com> | 2024-06-04 13:52:05 +0200 |
|---|---|---|
| committer | pml68 <pml31@protonmail.com> | 2024-06-04 13:52:19 +0200 |
| commit | 6a4294e773ea29a70b522cdd39e0e7fbdc6a3b0b (patch) | |
| tree | aea2c1a20e67a7aa66334a46f538818fc6e247fb /lua | |
| parent | feat(image.nvim): set only_render_image_at_cursor to true (diff) | |
| download | nvim-6a4294e773ea29a70b522cdd39e0e7fbdc6a3b0b.tar.gz | |
feat(Oil): add float options, change <leader>e to open in floating mode
Diffstat (limited to '')
| -rw-r--r-- | lua/pml68/lazy.lua | 3 | ||||
| -rw-r--r-- | lua/pml68/plugins.lua | 9 | ||||
| -rw-r--r-- | lua/pml68/remap.lua | 2 | ||||
| -rw-r--r-- | lua/pml68/settings.lua | 1 |
4 files changed, 14 insertions, 1 deletions
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", "<leader>e", "<cmd>Oil<CR>") +vim.keymap.set("n", "<leader>e", "<cmd>Oil --float<CR>") vim.keymap.set("n", "<leader>n", "<cmd>set nu!<CR>") vim.keymap.set("n", "<leader>rn", "<cmd>set rnu!<CR>") vim.keymap.set("n", "<Esc>", "<cmd>nohl<CR>") 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 |
