mirror of
https://github.com/marcogll/omarchy_setup.git
synced 2026-01-13 13:25:16 +00:00
docs(v3.5.0): update README for integrated mg_dotfiles and security improvements
- Integrated mg_dotfiles as regular directory (not submodule) - Added .zshrc.local.example template for local configs without secrets - Added mg_dotfiles/zsh/.zshrc.local to .gitignore to protect API keys - Updated README to reflect mg_dotfiles integration and new structure - Added nvim configuration directory with LazyVim setup
This commit is contained in:
84
mg_dotfiles/nvim/lua/plugins/editor.lua
Normal file
84
mg_dotfiles/nvim/lua/plugins/editor.lua
Normal file
@@ -0,0 +1,84 @@
|
||||
-- This file contains the configuration for various Neovim plugins related to the editor.
|
||||
|
||||
return {
|
||||
{
|
||||
-- Plugin: goto-preview
|
||||
-- URL: https://github.com/rmagatti/goto-preview
|
||||
-- Description: Provides preview functionality for definitions, declarations, implementations, type definitions, and references.
|
||||
"rmagatti/goto-preview",
|
||||
event = "BufEnter", -- Load the plugin when a buffer is entered
|
||||
config = true, -- Enable default configuration
|
||||
keys = {
|
||||
{
|
||||
"gpd",
|
||||
"<cmd>lua require('goto-preview').goto_preview_definition()<CR>",
|
||||
noremap = true, -- Do not allow remapping
|
||||
desc = "goto preview definition", -- Description for the keybinding
|
||||
},
|
||||
{
|
||||
"gpD",
|
||||
"<cmd>lua require('goto-preview').goto_preview_declaration()<CR>",
|
||||
noremap = true,
|
||||
desc = "goto preview declaration",
|
||||
},
|
||||
{
|
||||
"gpi",
|
||||
"<cmd>lua require('goto-preview').goto_preview_implementation()<CR>",
|
||||
noremap = true,
|
||||
desc = "goto preview implementation",
|
||||
},
|
||||
{
|
||||
"gpy",
|
||||
"<cmd>lua require('goto-preview').goto_preview_type_definition()<CR>",
|
||||
noremap = true,
|
||||
desc = "goto preview type definition",
|
||||
},
|
||||
{
|
||||
"gpr",
|
||||
"<cmd>lua require('goto-preview').goto_preview_references()<CR>",
|
||||
noremap = true,
|
||||
desc = "goto preview references",
|
||||
},
|
||||
{
|
||||
"gP",
|
||||
"<cmd>lua require('goto-preview').close_all_win()<CR>",
|
||||
noremap = true,
|
||||
desc = "close all preview windows",
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
-- Plugin: mini.hipatterns
|
||||
-- URL: https://github.com/nvim-mini/mini.hipatterns
|
||||
-- Description: Provides highlighter patterns for various text patterns.
|
||||
"nvim-mini/mini.hipatterns",
|
||||
event = "BufReadPre", -- Load the plugin before reading a buffer
|
||||
opts = {
|
||||
highlighters = {
|
||||
hsl_color = {
|
||||
pattern = "hsl%(%d+,? %d+,? %d+%)", -- Pattern to match HSL color values
|
||||
group = function(_, match)
|
||||
local utils = require("config.gentleman.utils")
|
||||
local h, s, l = match:match("hsl%((%d+),? (%d+),? (%d+)%)")
|
||||
h, s, l = tonumber(h), tonumber(s), tonumber(l)
|
||||
local hex_color = utils.hslToHex(h, s, l)
|
||||
return MiniHipatterns.compute_hex_color_group(hex_color, "bg")
|
||||
end,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
-- Plugin: git.nvim
|
||||
-- URL: https://github.com/dinhhuy258/git.nvim
|
||||
-- Description: Provides Git integration for Neovim.
|
||||
"dinhhuy258/git.nvim",
|
||||
event = "BufReadPre", -- Load the plugin before reading a buffer
|
||||
opts = {
|
||||
keymaps = {
|
||||
blame = "<Leader>gb", -- Keybinding to open blame window
|
||||
browse = "<Leader>go", -- Keybinding to open file/folder in git repository
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user