diff --git a/dotfiles/neovim/ftdetect/hkf.lua b/dotfiles/neovim/ftdetect/hkf.lua deleted file mode 100644 index fdca1d4..0000000 --- a/dotfiles/neovim/ftdetect/hkf.lua +++ /dev/null @@ -1,7 +0,0 @@ -vim.api.nvim_create_autocmd({ "BufNewFile", "BufRead" }, { - group = vim.api.nvim_create_augroup("Detect hkf", {}), - pattern = "*.hkf", - callback = function() - vim.opt.filetype = "hkf" - end -}) diff --git a/dotfiles/neovim/lua/telescope/extensions/unicode.lua b/dotfiles/neovim/lua/telescope/extensions/unicode.lua deleted file mode 100644 index 10f15a4..0000000 --- a/dotfiles/neovim/lua/telescope/extensions/unicode.lua +++ /dev/null @@ -1,92 +0,0 @@ -local M = {} -local pickers = require "telescope.pickers" -local finders = require "telescope.finders" -local conf = require("telescope.config").values -local actions = require "telescope.actions" -local action_state = require "telescope.actions.state" -local previewers = require "telescope.previewers" -local utils = require "telescope.utils" - -local add_abbreviations = false - -local unicodeChars = { - nats = "ℕ", - rationals = "ℚ", - reals = "ℝ", - integers = "ℤ", - forall = "∀", - lambda = "λ", - arrow = "→", - compose = "∘", - inverse = "⁻¹", - dots = "…", - alpha = "ɑ", - beta = "β", - pi = "π", - Pi = 'Π', - sigma = "σ", - Sigma = "Σ", - tau = "τ", - theta = "θ", - gamma = "γ", - Gamma = "Γ", - context = "Γ" -} - --- our picker function for unicode chars -function M.picker(opts) - opts = opts or {} - local results = {} - - for key, value in pairs(unicodeChars) do - -- Name: char pair - table.insert(results, { key, value }) - end - - print(results) - - pickers.new(opts, { - prompt_title = "Unicode characters", - finder = finders.new_table { - results = results, - entry_maker = function(entry) - return { value = entry, display = entry[1], ordinal = entry[1] } - end - }, - sorter = conf.generic_sorter(opts), - previewer = previewers.new { - preview_fn = function(_, entry) return entry.value[2] end - }, - attach_mappings = function(prompt_bufnr) - actions.select_default:replace(function() - actions.close(prompt_bufnr) - local selection = action_state.get_selected_entry() - - if selection == nil then - utils.__warn_no_selection "my.abbreviations" - return - end - - vim.api.nvim_put({ selection.value[2] }, "", false, true) - vim.cmd("startinsert") - end) - return true - end - }):find() -end - -function M.setupAbbreviations(prefix, ending) - prefix = prefix or "" - ending = ending or "" - - if not add_abbreviations then return end - - local abbreviate = require("my.abbreviations").abbr - - for key, value in pairs(unicodeChars) do - -- By default abbreviations are triggered using "_" - abbreviate(prefix .. key .. ending, value) - end -end - -return M diff --git a/dotfiles/neovim/syntax/hkf.vim b/dotfiles/neovim/syntax/hkf.vim deleted file mode 100644 index 8ed4297..0000000 --- a/dotfiles/neovim/syntax/hkf.vim +++ /dev/null @@ -1,32 +0,0 @@ -if exists("b:current_syntax") - finish -endif - -syntax keyword kfKeyword alias template layer using path name input output assume fun as import exporting module unsafe def -syntax keyword kfFunction LayerTemplate Sequence Chord Keycode Layer Broken - -syntax match kfComment "\v--.*$" - -syntax match kfOperator "\v_" -syntax match kfOperator "\v\," -syntax match kfOperator "\v\." -syntax match kfOperator "\v\:" -syntax match kfOperator "\v\|" -syntax match kfOperator "\v\=" -syntax match kfOperator "\v\=\>" -syntax match kfOperator "\v\-\>" -syntax match kfOperator "\v→" -syntax match kfOperator "\v\*" -syntax match kfOperator "\v\(" -syntax match kfOperator "\v\)" -syntax match kfOperator "\vλ" - -syntax region kfString start=/\v"/ skip=/\v\\./ end=/\v"/ - -highlight link kfKeyword Keyword -highlight link kfFunction Function -highlight link kfComment Comment -highlight link kfOperator Operator -highlight link kfString String - -let b:current_syntax = "hkf" diff --git a/dotfiles/neovim/tl/my/plugins/chunk.tl b/dotfiles/neovim/tl/my/plugins/chunk.tl deleted file mode 100644 index 20b638e..0000000 --- a/dotfiles/neovim/tl/my/plugins/chunk.tl +++ /dev/null @@ -1,3 +0,0 @@ -function hi() - print("Hello world!") -end diff --git a/scripts/hm-rebuild.sh b/scripts/hm-rebuild.sh index ee88444..5e1a5a2 100755 --- a/scripts/hm-rebuild.sh +++ b/scripts/hm-rebuild.sh @@ -1,4 +1,4 @@ #!/run/current-system/sw/bin/bash home-manager build --flake .#$1 -rm -rf result ~/.local/share/hm-result/$1 +rm -rf ~/.local/share/hm-result/$1 mv result ~/.local/share/hm-result/$1