Skip to content

Commit

Permalink
Merge pull request #25 from fabmorais/upd-wildermenu
Browse files Browse the repository at this point in the history
Update Wilder Menu and a few more settings
  • Loading branch information
fabmorais authored Jun 29, 2024
2 parents 0ae8f71 + f53dd3d commit 123f2ad
Show file tree
Hide file tree
Showing 8 changed files with 72 additions and 21 deletions.
1 change: 1 addition & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ require("treesitter-config")
require("which-config")
require("toggleterm-config")
require("comment-config")
require("wilder-config")
require("colorizer-config")
require("blankline-config")
require("autopairs-config")
Expand Down
39 changes: 21 additions & 18 deletions lazy-lock.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
{
"ChatGPT.nvim": { "branch": "main", "commit": "24bcca7f3fedfd5451d2c500d4e2cdfb9707d661" },
"LuaSnip": { "branch": "master", "commit": "50fcf17db7c75af80e6b6109acfbfb4504768780" },
"auto-session": { "branch": "main", "commit": "af2219b9fa99c1d7ac409bd9eac094c459d3f52d" },
"ChatGPT.nvim": { "branch": "main", "commit": "f081338f07216a46d3915ce46c1fcb083bcb5016" },
"LuaSnip": { "branch": "master", "commit": "ce0a05ab4e2839e1c48d072c5236cce846a387bc" },
"auto-session": { "branch": "main", "commit": "879f5b30207bd53101e1034ca91330f23746f601" },
"barbar.nvim": { "branch": "master", "commit": "d181f2cfd4b828f9c6f1e10e69c68241de59f54f" },
"catppuccin": { "branch": "main", "commit": "67565cd353fa543fa30cb738570c2e4c87da3e9c" },
"catppuccin": { "branch": "main", "commit": "31fcfb02c47952d5c75aec893b93b2878abe5fbb" },
"cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" },
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
"dashboard-nvim": { "branch": "master", "commit": "b88c997f468a1bacb1e9b13ff3b567638caa06e6" },
"dashboard-nvim": { "branch": "master", "commit": "69a4c935cc43d3d725ed0600c6d00593bc23d132" },
"diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" },
"dracula.nvim": { "branch": "main", "commit": "8d8bddb8814c3e7e62d80dda65a9876f97eb699c" },
"friendly-snippets": { "branch": "main", "commit": "682157939e57bd6a2c86277dfd4d6fbfce63dbac" },
"gitsigns.nvim": { "branch": "main", "commit": "0dc886637f9686b7cfd245a4726f93abeab19d4a" },
"gruvbox.nvim": { "branch": "main", "commit": "d4cde3853a172485961b515c36d51d757728d6e6" },
"indent-blankline.nvim": { "branch": "master", "commit": "d98f537c3492e87b6dc6c2e3f66ac517528f406f" },
"lazy.nvim": { "branch": "main", "commit": "bc620783663ab09d16bff9fdecc07da65b2a1528" },
"gitsigns.nvim": { "branch": "main", "commit": "6b1a14eabcebbcca1b9e9163a26b2f8371364cb7" },
"gruvbox.nvim": { "branch": "main", "commit": "a7cacf59418a6fe52da3d022bfd76a8caf34dc8d" },
"indent-blankline.nvim": { "branch": "master", "commit": "65e20ab94a26d0e14acac5049b8641336819dfc7" },
"lazy.nvim": { "branch": "main", "commit": "332a7ff9b3d226529d8afda4e61979e8b410f350" },
"lspkind-nvim": { "branch": "master", "commit": "1735dd5a5054c1fb7feaf8e8658dbab925f4f0cf" },
"lspsaga.nvim": { "branch": "main", "commit": "6f920cfabddb9b7de5a3a4d0b7cd4f0774ae23e2" },
"lualine.nvim": { "branch": "master", "commit": "0a5a66803c7407767b799067986b4dc3036e1983" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "37a336b653f8594df75c827ed589f1c91d91ff6c" },
"mason.nvim": { "branch": "main", "commit": "0950b15060067f752fde13a779a994f59516ce3d" },
"nui.nvim": { "branch": "main", "commit": "322978c734866996274467de084a95e4f9b5e0b1" },
"nui.nvim": { "branch": "main", "commit": "61574ce6e60c815b0a0c4b5655b8486ba58089a1" },
"null-ls.nvim": { "branch": "main", "commit": "0010ea927ab7c09ef0ce9bf28c2b573fc302f5a7" },
"nvim-autopairs": { "branch": "master", "commit": "c15de7e7981f1111642e7e53799e1211d4606cb9" },
"nvim-cmp": { "branch": "main", "commit": "a110e12d0b58eefcf5b771f533fc2cf3050680ac" },
Expand All @@ -28,20 +28,23 @@
"nvim-dap": { "branch": "master", "commit": "6f79b822997f2e8a789c6034e147d42bc6706770" },
"nvim-dap-ui": { "branch": "master", "commit": "b7267003ba4dd860350be86f75b9d9ea287cedca" },
"nvim-dap-virtual-text": { "branch": "master", "commit": "d7c695ea39542f6da94ee4d66176f5d660ab0a77" },
"nvim-lspconfig": { "branch": "master", "commit": "6806370929cf6a35be6e5e0e74588515a4356e4d" },
"nvim-lspconfig": { "branch": "master", "commit": "7edfd6692ba17f8d4fe08d84142781898ab0a672" },
"nvim-nio": { "branch": "master", "commit": "7969e0a8ffabdf210edd7978ec954a47a737bbcc" },
"nvim-notify": { "branch": "master", "commit": "d333b6f167900f6d9d42a59005d82919830626bf" },
"nvim-tree.lua": { "branch": "master", "commit": "2086e564c4d23fea714e8a6d63b881e551af2f41" },
"nvim-treesitter": { "branch": "master", "commit": "7b04b398f868563cac37ae90baffd7c3dca513fe" },
"nvim-surround": { "branch": "main", "commit": "ec2dc7671067e0086cdf29c2f5df2dd909d5f71f" },
"nvim-tree.lua": { "branch": "master", "commit": "8b2c5c678be4b49dff6a2df794877000113fd77b" },
"nvim-treesitter": { "branch": "master", "commit": "f0e3b5c5fe38d0012c63368db90017fef87c85a2" },
"nvim-treesitter-refactor": { "branch": "master", "commit": "65ad2eca822dfaec2a3603119ec3cc8826a7859e" },
"nvim-ts-rainbow": { "branch": "master", "commit": "ef95c15a935f97c65a80e48e12fe72d49aacf9b9" },
"nvim-web-devicons": { "branch": "master", "commit": "c0cfc1738361b5da1cd0a962dd6f774cc444f856" },
"plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" },
"rust-tools.nvim": { "branch": "master", "commit": "676187908a1ce35ffcd727c654ed68d851299d3e" },
"telescope.nvim": { "branch": "master", "commit": "c392f1b78eaaf870ca584bd698e78076ed301b26" },
"telescope.nvim": { "branch": "master", "commit": "7bd2f9b72f8449780b79bcf351534e2cd36ec43a" },
"tint.nvim": { "branch": "master", "commit": "02bd0527a315a80e4e25bb2dd7b6994fb0daae01" },
"toggleterm.nvim": { "branch": "main", "commit": "fee58a0473fd92b28c34f8f724e4918b15ba30a3" },
"tokyonight.nvim": { "branch": "main", "commit": "81c867c5f638597a82c82094dcb90ed42444dabc" },
"trouble.nvim": { "branch": "main", "commit": "2d8610a07033f2b367e71230ab128f8b89c2639d" },
"which-key.nvim": { "branch": "main", "commit": "0099511294f16b81c696004fa6a403b0ae61f7a0" }
"toggleterm.nvim": { "branch": "main", "commit": "cd55bf6aab3f88c259fa29ea86bbdcb1a325687d" },
"tokyonight.nvim": { "branch": "main", "commit": "30d7be361a7fbf187a881f17e574e9213d5108ea" },
"trouble.nvim": { "branch": "main", "commit": "e5d0e04121c662ce29190a57dd03655d43c59d44" },
"undotree": { "branch": "master", "commit": "56c684a805fe948936cda0d1b19505b84ad7e065" },
"which-key.nvim": { "branch": "main", "commit": "0099511294f16b81c696004fa6a403b0ae61f7a0" },
"wilder.nvim": { "branch": "master", "commit": "679f348dc90d80ff9ba0e7c470c40a4d038dcecf" }
}
5 changes: 4 additions & 1 deletion lua/chatgpt-config/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
require("chatgpt").setup({
api_key_cmd = "op read op://private/OpenAI/credential --no-newline",
api_model = "gpt-4-turbo",
openai_params = {
model = "gpt-4-turbo",
},
buf_options = { filetype = "markdown" },
})
3 changes: 2 additions & 1 deletion lua/debugger-config/rust.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ local dap = require("dap")

dap.adapters.lldb = {
type = "executable",
command = "/opt/homebrew/opt/llvm/bin/lldb-vscode", -- adjust as needed, must be absolute path
-- command = "/opt/homebrew/opt/llvm/bin/lldb-vscode", -- adjust as needed, must be absolute path
command = "/usr/bin/lldb-vscode",
name = "lldb",
}

Expand Down
14 changes: 13 additions & 1 deletion lua/lazy-config/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ end
vim.opt.rtp:prepend(lazypath)

vim.g.mapleader = " "
vim.g.maplocalleader = "\\"

local plugins = {
{ "kyazdani42/nvim-tree.lua" },
Expand Down Expand Up @@ -47,9 +48,19 @@ local plugins = {
{ "lukas-reineke/indent-blankline.nvim" },
{ "windwp/nvim-autopairs" },
{ "sindrets/diffview.nvim", dependencies = "nvim-lua/plenary.nvim" },
{ "mbbill/undotree", lazy = true, cmd = "UndotreeToggle" }, -- see undo tree

--> Movement / Text Manipulation
{
"kylechui/nvim-surround", -- surround objects
version = "*", -- Use for stability; omit to use `main` branch for the latest features
event = "VeryLazy",
config = function()
require("nvim-surround").setup()
end,
},
--> Colorschemes
{ "mofiqul/dracula.nvim", event = "VeryLazy" },
{ "mofiqul/dracula.nvim" },
{ "ellisonleao/gruvbox.nvim", event = "VeryLazy" },
{ "catppuccin/nvim", name = "catppuccin", event = "VeryLazy" },
{ "folke/tokyonight.nvim", event = "VeryLazy" },
Expand Down Expand Up @@ -89,6 +100,7 @@ local plugins = {
{ "rafamadriz/friendly-snippets" },
{ "saadparwaiz1/cmp_luasnip" }, --> Snippets source for nvim-cmp
{ "simrat39/rust-tools.nvim" },
{ "gelguy/wilder.nvim", event = "VeryLazy", build = ":UpdateRemotePlugins" },
{
"nvimdev/lspsaga.nvim",
dependencies = "nvim-lspconfig",
Expand Down
1 change: 1 addition & 0 deletions lua/mappings/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ local opts = { noremap = true, silent = true }
vim.g.mapleader = " "

map("n", "<leader>e", ":NvimTreeToggle<CR>", opts)
map("n", "<leader>u", ":UndotreeToggle<CR>", opts)
map("n", "<C-h>", "<C-w>h", { noremap = true, silent = false })
map("n", "<C-l>", "<C-w>l", { noremap = true, silent = false })
map("n", "<C-j>", "<C-w>j", { noremap = true, silent = false })
Expand Down
1 change: 1 addition & 0 deletions lua/settings/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ set.hlsearch = true
set.incsearch = true
set.ignorecase = true
set.smartcase = true
set.inccommand = "split" -- in test

set.splitbelow = true
set.splitright = true
Expand Down
29 changes: 29 additions & 0 deletions lua/wilder-config/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
local wilder = require("wilder")
wilder.setup({ modes = { ":", "/", "?" } })
wilder.set_option("pipeline", {
wilder.branch(
wilder.python_file_finder_pipeline({
file_command = function(_, arg)
if string.find(arg, ".") ~= nil then
return { "fd", "-tf", "-H" }
else
return { "fd", "-tf" }
end
end,
dir_command = { "fd", "-td" },
filters = { "fuzzy_filter", "difflib_sorter" },
}),
wilder.cmdline_pipeline(),
wilder.python_search_pipeline()
),
})

wilder.set_option(
"renderer",
wilder.popupmenu_renderer({
highlighter = wilder.basic_highlighter(),
left = { " ", wilder.popupmenu_devicons() },
right = { " ", wilder.popupmenu_scrollbar({ thumb_char = " " }) },
highlights = { default = "WilderMenu", accent = "WilderAccent" },
})
)

0 comments on commit 123f2ad

Please sign in to comment.