๐Ÿ’ YAML toolkit for Neovim users

Remove yaml wrapper functions from get_yaml_key

+2 -5
+2 -5
lua/yaml_nvim/init.lua
··· 79 79 end 80 80 81 81 M.get_yaml_key = function() 82 - local restore_to = set_yaml_as_filetype() 83 - local node = document.get_key_relevant_to_cursor() 82 + local node = get_current_yaml_node() 84 83 if node == nil then 85 84 return 86 85 end 87 - local parsed = pair.parse(node) 88 - restore_filetype(restore_to) 89 - return parsed.key 86 + return node.key 90 87 end 91 88 92 89 M.yank = function(register)