Skip to content

Commit

Permalink
Merge pull request #3 from takkii/develop
Browse files Browse the repository at this point in the history
Update.
  • Loading branch information
takkii authored Dec 13, 2024
2 parents 947186b + e3675f5 commit 1a95cf0
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
4 changes: 0 additions & 4 deletions neovim/init.txt

This file was deleted.

28 changes: 28 additions & 0 deletions neovim/init_delete.rb
Original file line number Diff line number Diff line change
@@ -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__

0 comments on commit 1a95cf0

Please sign in to comment.