fix copy_filename_and_line
This commit is contained in:
parent
3b5da664ee
commit
8ac78fdb52
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ s("n", "<leader>tv", toggle_lsp_virtual_text, { desc = "toggle virtual text for
|
||||||
|
|
||||||
|
|
||||||
function copy_filename_and_line ()
|
function copy_filename_and_line ()
|
||||||
local filename = vim.fn.expand("%:t")
|
local filename = vim.fn.expand("%")
|
||||||
local line = vim.fn.line(".")
|
local line = vim.fn.line(".")
|
||||||
local text = filename .. ":" .. line
|
local text = filename .. ":" .. line
|
||||||
vim.fn.setreg("+", text)
|
vim.fn.setreg("+", text)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue