tangled
alpha
login
or
join now
cuducos.me
/
yaml.nvim
9
fork
atom
๐ YAML toolkit for Neovim users
9
fork
atom
overview
issues
pulls
pipelines
Remove yaml wrapper functions from get_yaml_key
Joshua Cold
2 years ago
afb7f922
e2e6e210
+2
-5
1 changed file
expand all
collapse all
unified
split
lua
yaml_nvim
init.lua
+2
-5
lua/yaml_nvim/init.lua
···
79
79
end
80
80
81
81
M.get_yaml_key = function()
82
82
-
local restore_to = set_yaml_as_filetype()
83
83
-
local node = document.get_key_relevant_to_cursor()
82
82
+
local node = get_current_yaml_node()
84
83
if node == nil then
85
84
return
86
85
end
87
87
-
local parsed = pair.parse(node)
88
88
-
restore_filetype(restore_to)
89
89
-
return parsed.key
86
86
+
return node.key
90
87
end
91
88
92
89
M.yank = function(register)