mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
nvim: ft keymaps via ftplugin/
This commit is contained in:
parent
51e6343b9e
commit
32429308f3
22 changed files with 112 additions and 213 deletions
|
|
@ -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
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue