From 9bbc959c959e0d9e32c61ab8f505558d25174a5a Mon Sep 17 00:00:00 2001 From: Takayuki Kamiyama Date: Fri, 13 Dec 2024 11:32:49 +0900 Subject: [PATCH 1/2] Delete. --- neovim/init.txt | 4 ---- 1 file changed, 4 deletions(-) delete mode 100644 neovim/init.txt 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 From e3675f5a20748c959321f8c58498468eea32e8a5 Mon Sep 17 00:00:00 2001 From: Takayuki Kamiyama Date: Fri, 13 Dec 2024 11:32:56 +0900 Subject: [PATCH 2/2] Update. --- neovim/init_delete.rb | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 neovim/init_delete.rb 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__