From 000a7c2a4c4bda36f655f6489b5bac3211515a5d Mon Sep 17 00:00:00 2001 From: "eric.marin" Date: Wed, 18 Dec 2024 21:06:41 +0100 Subject: niri and fuzzel --- nvim/lua/config/keymaps.lua | 2 +- nvim/lua/config/options.lua | 1 + nvim/lua/plugins/neorg.lua | 8 ++++++++ nvim/lua/plugins/nvim-lspconfig.lua | 4 ++-- nvim/lua/plugins/nvim-parinfer.lua | 1 - nvim/lua/plugins/oil.lua | 14 ++++++++++++-- nvim/lua/plugins/yuck.lua | 5 ----- 7 files changed, 24 insertions(+), 11 deletions(-) delete mode 100644 nvim/lua/plugins/yuck.lua (limited to 'nvim/lua') diff --git a/nvim/lua/config/keymaps.lua b/nvim/lua/config/keymaps.lua index f6d97c9..766627b 100644 --- a/nvim/lua/config/keymaps.lua +++ b/nvim/lua/config/keymaps.lua @@ -30,7 +30,7 @@ vim.api.nvim_set_keymap("n", "", "gcc", { noremap = false }) vim.api.nvim_set_keymap("v", "", "gcc", { noremap = false }) -- Buffer kill -keymap.set("n", "", ":bdelete!", opts) +-- keymap.set("n", "", ":bunload", opts) -- Working keymap.set("n", "", ":w", opts) diff --git a/nvim/lua/config/options.lua b/nvim/lua/config/options.lua index d79c664..bf92bb5 100644 --- a/nvim/lua/config/options.lua +++ b/nvim/lua/config/options.lua @@ -9,6 +9,7 @@ opt.wrap = false -- Appearance opt.number = true +opt.relativenumber = true opt.cursorline = true opt.termguicolors = true opt.showmode = true diff --git a/nvim/lua/plugins/neorg.lua b/nvim/lua/plugins/neorg.lua index be2f7e2..1e2d948 100644 --- a/nvim/lua/plugins/neorg.lua +++ b/nvim/lua/plugins/neorg.lua @@ -21,6 +21,14 @@ local config = function() } } }, + -- ["core.dirman"] = { + -- config = { + -- workspaces = { + -- default = "~/neorg" + -- }, + -- index = "index.norg" + -- } + -- }, ["core.completion"] = { config = { engine = "nvim-cmp" diff --git a/nvim/lua/plugins/nvim-lspconfig.lua b/nvim/lua/plugins/nvim-lspconfig.lua index 5be314c..c9b1326 100644 --- a/nvim/lua/plugins/nvim-lspconfig.lua +++ b/nvim/lua/plugins/nvim-lspconfig.lua @@ -98,9 +98,9 @@ local config = function() }) -- vacuum configuration lspconfig.vacuum.setup({ - on_attach = on_attach, + -- on_attach = on_attach, capabilities = capabilities, - filetypes = { "yaml", "json" } + filetypes = { "yaml" } }) end diff --git a/nvim/lua/plugins/nvim-parinfer.lua b/nvim/lua/plugins/nvim-parinfer.lua index 15dced7..95d701d 100644 --- a/nvim/lua/plugins/nvim-parinfer.lua +++ b/nvim/lua/plugins/nvim-parinfer.lua @@ -1,5 +1,4 @@ return { "gpanders/nvim-parinfer", lazy = true, - ft = "yuck", } diff --git a/nvim/lua/plugins/oil.lua b/nvim/lua/plugins/oil.lua index e717988..c19baad 100644 --- a/nvim/lua/plugins/oil.lua +++ b/nvim/lua/plugins/oil.lua @@ -4,9 +4,8 @@ local init = function() { 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, @@ -23,6 +22,17 @@ local config = function() ["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, }) diff --git a/nvim/lua/plugins/yuck.lua b/nvim/lua/plugins/yuck.lua deleted file mode 100644 index aedbeba..0000000 --- a/nvim/lua/plugins/yuck.lua +++ /dev/null @@ -1,5 +0,0 @@ -return { - "elkowar/yuck.vim", - lazy = true, - ft = "yuck" -} -- cgit v1.2.3