nvim: move arrow, add namu and odin
This commit is contained in:
@@ -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 {
|
||||
{ '<leader>mg', '<cmd>MarksListGlobal<CR>' },
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
"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", "<leader>'", ":Namu symbols<cr>", {
|
||||
desc = "Jump to LSP symbol",
|
||||
silent = true,
|
||||
})
|
||||
vim.keymap.set("n", "<leader>\\", ":Namu workspace<cr>", {
|
||||
desc = "LSP Symbols - Workspace",
|
||||
silent = true,
|
||||
})
|
||||
end,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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',
|
||||
|
||||
27
nvim/.config/nvim/lua/plugins/odin.lua
Normal file
27
nvim/.config/nvim/lua/plugins/odin.lua
Normal file
@@ -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,
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user