diff --git a/lua/weeheavy/plugins/aerial.lua b/lua/weeheavy/plugins/aerial.lua index 2bc57e4..061d962 100644 --- a/lua/weeheavy/plugins/aerial.lua +++ b/lua/weeheavy/plugins/aerial.lua @@ -3,14 +3,12 @@ return { opts = {}, config = function() require("aerial").setup({ - -- optionally use on_attach to set keymaps when aerial has attached to a buffer on_attach = function(bufnr) -- Jump forwards/backwards with '{' and '}' vim.keymap.set("n", "{", "AerialPrev", { buffer = bufnr }) vim.keymap.set("n", "}", "AerialNext", { buffer = bufnr }) end, }) - -- You probably also want to set a keymap to toggle aerial vim.keymap.set("n", "a", "AerialToggle!") end, } diff --git a/lua/weeheavy/plugins/oil.lua b/lua/weeheavy/plugins/oil.lua index 5d279b4..057ea33 100644 --- a/lua/weeheavy/plugins/oil.lua +++ b/lua/weeheavy/plugins/oil.lua @@ -26,10 +26,9 @@ return { }, float = { - -- Padding around the floating window - padding = 4, - max_width = 80, - max_height = 25, + -- padding = 4, + max_width = 0.65, + max_height = 0.4, border = "rounded", win_options = { winblend = 0, diff --git a/lua/weeheavy/plugins/trouble.lua b/lua/weeheavy/plugins/trouble.lua index beb946c..9f34071 100644 --- a/lua/weeheavy/plugins/trouble.lua +++ b/lua/weeheavy/plugins/trouble.lua @@ -2,19 +2,24 @@ -- list to help you solve all the trouble your code is causing. -- https://github.com/folke/trouble.nvim return { - "folke/trouble.nvim", - lazy = false, - keys = { - -- TODO: add more keymaps - { - "q", - "Trouble diagnostics toggle filter.buf=0 focus=true", - desc = "Diagnostics (Trouble)", - }, - }, - opts = { - open_no_results = true, - auto_close = true, - indent_guides = false, - }, + "folke/trouble.nvim", + lazy = false, + opts = { + open_no_results = true, + auto_close = true, + indent_guides = false, + }, + keys = { + -- TODO: add more keymaps + { + "q", + "Trouble diagnostics toggle filter.buf=0 focus=false", + desc = "Diagnostics (Trouble)", + }, + -- { + -- "z", + -- "Trouble lsp_document_symbols toggle filter.buf=0 focus=false win.position=right", + -- desc = "Symbols (Trouble)", + -- }, + }, } diff --git a/lua/weeheavy/prefs.lua b/lua/weeheavy/prefs.lua index dcb5caa..cc5dc3e 100644 --- a/lua/weeheavy/prefs.lua +++ b/lua/weeheavy/prefs.lua @@ -76,7 +76,8 @@ vim.opt.timeoutlen = 300 -- Set completeopt to have a better completion experience -- https://neovim.io/doc/user/options.html -vim.opt.completeopt = "menuone,noselect" +-- vim.opt.completeopt = "menuone,noselect" +vim.opt.completeopt = "menuone,noselect,fuzzy,nosort" -- Split windows appear below, not above vim.opt.splitbelow = true diff --git a/lua/weeheavy/remap.lua b/lua/weeheavy/remap.lua index c922287..01a516c 100644 --- a/lua/weeheavy/remap.lua +++ b/lua/weeheavy/remap.lua @@ -69,14 +69,14 @@ vim.keymap.set("n", "J", "mzJ`z") -- when merging lines, keep cursor -- ) -- Apply conform.nvim formatting on keypress (same as on save) -vim.keymap.set({ "n", "v" }, "o", function() - local conform = require("conform") - conform.format({ - lsp_fallback = true, - async = false, - timeout_ms = 500, - }) -end, { desc = "Format file or range (in visual mode)" }) +-- vim.keymap.set({ "n", "v" }, "o", function() +-- local conform = require("conform") +-- conform.format({ +-- lsp_fallback = true, +-- async = false, +-- timeout_ms = 500, +-- }) +-- end, { desc = "Format file or range (in visual mode)" }) -- Go to next diagnostic item (any severity) vim.keymap.set("n", "da", function()