mirror of
https://github.com/boxpositron/absolute-vim.git
synced 2026-02-28 19:50:38 +00:00
absolute.utils.get-git-root module to improve code organization and readability feat(gitignore.lua): update keymap description to include GitIgnore prefix for clarity and consistency with functionality provided by the keymap
19 lines
387 B
Lua
19 lines
387 B
Lua
local gitignore = require("gitignore")
|
|
local GetProjectRoot = require("absolute.utils.get-git-root")
|
|
|
|
-- Keymaps
|
|
|
|
local opts = { noremap = true, silent = true }
|
|
|
|
opts.desc = "GitIgnore: Generate .gitignore"
|
|
|
|
vim.keymap.set("n", "<leader>gi", function()
|
|
local path = GetProjectRoot()
|
|
|
|
gitignore.generate(path)
|
|
end, opts)
|
|
|
|
-- Global Settings
|
|
|
|
vim.g.gitignore_nvim_overwrite = true
|