diff --git a/nvim/.config/nvim/lazy-lock.json b/nvim/.config/nvim/lazy-lock.json index 64149fd..2824f1f 100644 --- a/nvim/.config/nvim/lazy-lock.json +++ b/nvim/.config/nvim/lazy-lock.json @@ -31,6 +31,7 @@ "mason.nvim": { "branch": "main", "commit": "8024d64e1330b86044fed4c8494ef3dcd483a67c" }, "melange-nvim": { "branch": "master", "commit": "a51c6faa4fb09331382f87be99f71a8aa48dd422" }, "mellifluous.nvim": { "branch": "v1", "commit": "1637e46585435ebda7963248e0e65422effad8d9" }, + "namu.nvim": { "branch": "main", "commit": "a3a3d81d12b61a38f131253bcd3ce5e2c6599850" }, "nano-theme.nvim": { "branch": "main", "commit": "710c86bb90f963a7cf95f3dc15d287b59bc06b59" }, "neodev.nvim": { "branch": "main", "commit": "46aa467dca16cf3dfe27098042402066d2ae242d" }, "neogit": { "branch": "master", "commit": "7fe60f9aa6eacf2eb730c4e9b83d06a36d028161" }, diff --git a/nvim/.config/nvim/lua/plugins/bookmarks.lua b/nvim/.config/nvim/lua/plugins/bookmarks.lua index 4befb8d..cb2ba47 100644 --- a/nvim/.config/nvim/lua/plugins/bookmarks.lua +++ b/nvim/.config/nvim/lua/plugins/bookmarks.lua @@ -1,4 +1,16 @@ return { + { + "otavioschwanck/arrow.nvim", + dependencies = { + { "nvim-tree/nvim-web-devicons" }, + }, + opts = { + show_icons = true, + leader_key = '-', -- Recommended to be a single key + buffer_leader_key = '+', -- Per Buffer Mappings + } + }, + { "chentoast/marks.nvim", event = "VeryLazy", @@ -9,4 +21,28 @@ return { { 'mg', 'MarksListGlobal' }, }, }, + + { + "bassamsdata/namu.nvim", + config = function() + require("namu").setup({ + -- Enable the modules you want + namu_symbols = { + enable = true, + options = {}, -- here you can configure namu + }, + -- Optional: Enable other modules if needed + ui_select = { enable = false }, -- vim.ui.select() wrapper + }) + -- === Suggested Keymaps: === + vim.keymap.set("n", "'", ":Namu symbols", { + desc = "Jump to LSP symbol", + silent = true, + }) + vim.keymap.set("n", "\\", ":Namu workspace", { + desc = "LSP Symbols - Workspace", + silent = true, + }) + end, + } } diff --git a/nvim/.config/nvim/lua/plugins/editing.lua b/nvim/.config/nvim/lua/plugins/editing.lua index 4ddc8e6..057ad5c 100644 --- a/nvim/.config/nvim/lua/plugins/editing.lua +++ b/nvim/.config/nvim/lua/plugins/editing.lua @@ -1,18 +1,4 @@ return { - { - "otavioschwanck/arrow.nvim", - dependencies = { - { "nvim-tree/nvim-web-devicons" }, - -- or if using `mini.icons` - -- { "echasnovski/mini.icons" }, - }, - opts = { - show_icons = true, - leader_key = '-', -- Recommended to be a single key - buffer_leader_key = '+', -- Per Buffer Mappings - } - }, - -- "gc" to comment visual regions/lines { 'numToStr/Comment.nvim', diff --git a/nvim/.config/nvim/lua/plugins/odin.lua b/nvim/.config/nvim/lua/plugins/odin.lua new file mode 100644 index 0000000..2e68e37 --- /dev/null +++ b/nvim/.config/nvim/lua/plugins/odin.lua @@ -0,0 +1,27 @@ +require 'lspconfig'.ols.setup {} +return { + { + "stevearc/conform.nvim", + opts = { + -- notify_on_error = false, + -- Odinfmt gets its configuration from odinfmt.json. It defaults + -- writing to stdout but needs to be told to read from stdin. + formatters = { + odinfmt = { + -- Change where to find the command if it isn't in your path. + command = "odinfmt", + args = { "-stdin" }, + stdin = true, + }, + }, + -- and instruct conform to use odinfmt. + formatters_by_ft = { + odin = { "odinfmt" }, + }, + format_on_save = { + lsp_format = "fallback", + timeout_ms = 500, + } + }, + } +}