diff options
| author | eric.marin <maarin.eric@gmail.com> | 2025-10-29 16:23:58 +0100 |
|---|---|---|
| committer | eric.marin <maarin.eric@gmail.com> | 2025-11-04 09:25:10 +0100 |
| commit | c56a3edcb64643785941caea60e7c99e234c6018 (patch) | |
| tree | 6f3185270533ca34da515de4346c997f7488fe2c /nvim/lua | |
| parent | ab6d61c5fc5f8adebd46691f94cf35c32ae631db (diff) | |
| download | dotfiles-c56a3edcb64643785941caea60e7c99e234c6018.tar.gz dotfiles-c56a3edcb64643785941caea60e7c99e234c6018.zip | |
update
Diffstat (limited to 'nvim/lua')
| -rw-r--r-- | nvim/lua/plugins/lspsaga.lua | 5 | ||||
| -rw-r--r-- | nvim/lua/plugins/neopywal.lua | 33 | ||||
| -rw-r--r-- | nvim/lua/plugins/oil.lua | 95 |
3 files changed, 77 insertions, 56 deletions
diff --git a/nvim/lua/plugins/lspsaga.lua b/nvim/lua/plugins/lspsaga.lua index 48ac080..86e949f 100644 --- a/nvim/lua/plugins/lspsaga.lua +++ b/nvim/lua/plugins/lspsaga.lua @@ -1,6 +1,8 @@ local config = function() vim.diagnostic.config({ severity_sort = true, + virtual_lines = true, + virtual_text = false }) require("lspsaga").setup({ ui = { @@ -18,9 +20,6 @@ local config = function() } }, }) - vim.diagnostic.config({ - virtual_text = true - }) end return { diff --git a/nvim/lua/plugins/neopywal.lua b/nvim/lua/plugins/neopywal.lua index 31a9b47..7c37dbe 100644 --- a/nvim/lua/plugins/neopywal.lua +++ b/nvim/lua/plugins/neopywal.lua @@ -1,19 +1,26 @@ local init = function() - vim.cmd.colorscheme("neopywal") + vim.cmd.colorscheme("neopywal") end -local opts = { - use_wallust = true, - plugins = { - treesitter = true - } -} +local config = function() + require("neopywal").setup({ + plugins = { + treesitter = true + }, + custom_colors = {}, + custom_highlights = {}, + use_palette = { + light = "wallust", + dark = "wallust", + }, + }) +end return { - "RedsXDD/neopywal.nvim", - lazy = false, - name = "neopywal", - init = init, - opts = opts, - priority = 1000, + "RedsXDD/neopywal.nvim", + lazy = false, + name = "neopywal", + init = init, + config = config, + priority = 1000, } diff --git a/nvim/lua/plugins/oil.lua b/nvim/lua/plugins/oil.lua index c19baad..0d90db2 100644 --- a/nvim/lua/plugins/oil.lua +++ b/nvim/lua/plugins/oil.lua @@ -1,48 +1,63 @@ local init = function() - local keymap = vim.keymap - keymap.set("n", "<Space>b", ":Oil --float .<Enter>", - { noremap = true, silent = true, desc = "File browser (Oil)" }) -- Oil + local keymap = vim.keymap + keymap.set("n", "<Space>b", ":Oil --float .<Enter>", + { noremap = true, silent = true, desc = "File browser (Oil)" }) -- Oil end local config = function() - local detail = false - require("oil").setup({ - default_file_explorer = true, - delete_to_trash = true, - skip_confirm_for_simple_edits = true, - keymaps = { - ["b?"] = "actions.show_help", - ["<CR>"] = "actions.select", - ["bp"] = "actions.preview", - ["q"] = "actions.close", - ["br"] = "actions.refresh", - ["-"] = "actions.parent", - ["_"] = "actions.open_cwd", - ["~"] = "actions.cd", - ["bs"] = "actions.change_sort", - ["b."] = "actions.toggle_hidden", - ["bt"] = "actions.toggle_trash", - ["bd"] = { - desc = "Toggle file detail view", - callback = function() - detail = not detail - if detail then - require("oil").set_columns({ "icon", "permissions", "size", "mtime" }) - else - require("oil").set_columns({ "icon" }) - end - end, - }, - }, - use_default_keymaps = false, - }) + local detail = false + require("oil").setup({ + float = { + border = "rounded", + }, + confirmation = { + border = "rounded", + }, + progress = { + border = "rounded", + }, + ssh = { + border = "rounded", + }, + keymaps_help = { + border = "rounded", + }, + default_file_explorer = true, + delete_to_trash = true, + skip_confirm_for_simple_edits = true, + keymaps = { + ["b?"] = "actions.show_help", + ["<CR>"] = "actions.select", + ["bp"] = "actions.preview", + ["q"] = "actions.close", + ["br"] = "actions.refresh", + ["-"] = "actions.parent", + ["_"] = "actions.open_cwd", + ["~"] = "actions.cd", + ["bs"] = "actions.change_sort", + ["b."] = "actions.toggle_hidden", + ["bt"] = "actions.toggle_trash", + ["bd"] = { + desc = "Toggle file detail view", + callback = function() + detail = not detail + if detail then + require("oil").set_columns({ "icon", "permissions", "size", "mtime" }) + else + require("oil").set_columns({ "icon" }) + end + end, + }, + }, + use_default_keymaps = false, + }) end return { - "stevearc/oil.nvim", - dependencies = { "nvim-tree/nvim-web-devicons" }, - lazy = true, - cmd = "Oil", - init = init, - config = config + "stevearc/oil.nvim", + dependencies = { "nvim-tree/nvim-web-devicons" }, + lazy = true, + cmd = "Oil", + init = init, + config = config } |
