diff options
Diffstat (limited to 'nvim/lua')
| -rw-r--r-- | nvim/lua/config/keymaps.lua | 2 | ||||
| -rw-r--r-- | nvim/lua/config/options.lua | 1 | ||||
| -rw-r--r-- | nvim/lua/plugins/neorg.lua | 8 | ||||
| -rw-r--r-- | nvim/lua/plugins/nvim-lspconfig.lua | 4 | ||||
| -rw-r--r-- | nvim/lua/plugins/nvim-parinfer.lua | 1 | ||||
| -rw-r--r-- | nvim/lua/plugins/oil.lua | 14 | ||||
| -rw-r--r-- | nvim/lua/plugins/yuck.lua | 5 |
7 files changed, 24 insertions, 11 deletions
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", "<C-c>", "gcc", { noremap = false }) vim.api.nvim_set_keymap("v", "<C-c>", "gcc<Esc>", { noremap = false }) -- Buffer kill -keymap.set("n", "<C-q>", ":bdelete!<Enter>", opts) +-- keymap.set("n", "<C-q>", ":bunload<Enter>", opts) -- Working keymap.set("n", "<C-s>", ":w<Enter>", 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" -} |
