diff --git a/neovim/init.txt b/neovim/init.txt deleted file mode 100644 index 2a166f5..0000000 --- a/neovim/init.txt +++ /dev/null @@ -1,4 +0,0 @@ -" ./file -if filereadable(expand('~/.neovim/plugged/.netfile/lua/init.lua')) - lua require('init') -endif diff --git a/neovim/init_delete.rb b/neovim/init_delete.rb new file mode 100644 index 0000000..41ad748 --- /dev/null +++ b/neovim/init_delete.rb @@ -0,0 +1,28 @@ +# frozen_string_literal: true + +require 'fileutils' + +# Installer runner. +class UnInstallerRunner + # default encoding utf-8, change encode here. + def self.encoding_style + Encoding.default_internal = 'UTF-8' + Encoding.default_external = 'UTF-8' + end + + def self.run + encoding_style + FileUtils.rm_rf(File.expand_path('~/AppData/Local/nvim')) + puts 'The specified folder has been deleted.' + end +end + +begin + UnInstallerRunner.run +rescue StandardError => e + puts e.backtrace +ensure + GC.compact +end + +__END__