nvim: ft keymaps via ftplugin/

This commit is contained in:
js0ny 2025-11-17 16:54:15 +00:00
parent 51e6343b9e
commit 32429308f3
22 changed files with 112 additions and 213 deletions

View file

@ -86,6 +86,16 @@ local leader_mappings = {
cmd = ":let @+ = expand('%') . ':' . line('.')<CR>",
opts = { desc = "Copy relative file path with line number" },
},
{ keys= "p",
cmd = function()
local filepath = vim.fn.expand('%:.')
if filepath == '' then
vim.notify("No file path (buffer is unnamed)", vim.log.levels.WARN)
else
vim.notify(filepath, vim.log.levels.INFO)
end
end, opts = { desc = "Print current file path" }
}
},
g = { -- +git/version control
},