mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 10:45:16 -07:00
fix(snippet): remove misleading comment about TM_FILENAME_BASE (#26465)
This commit is contained in:
parent
2289ca273c
commit
a1bdf2852d
@ -42,9 +42,7 @@ local function resolve_variable(var, default)
|
||||
elseif var == 'TM_FILENAME' then
|
||||
return expand_or_default('%:t')
|
||||
elseif var == 'TM_FILENAME_BASE' then
|
||||
-- Not using '%:t:r' since we want to remove all extensions.
|
||||
local filename_base = expand_or_default('%:t'):gsub('%.[^%.]*$', '')
|
||||
return filename_base
|
||||
return expand_or_default('%:t:r')
|
||||
elseif var == 'TM_DIRECTORY' then
|
||||
return expand_or_default('%:p:h:t')
|
||||
elseif var == 'TM_FILEPATH' then
|
||||
|
Loading…
Reference in New Issue
Block a user