[NeoVim] Update to new hibiscus syntax
This commit is contained in:
@@ -58,15 +58,15 @@
|
||||
(fn [command _] (do_command (. command.arguments 1 :falsePositives) :hiddenFalsePositives)))
|
||||
|
||||
(fn post_attach []
|
||||
(exec! [[:setlocal "spell"] [:setlocal "nospell"]])
|
||||
(exec! [setlocal spell] [setlocal nospell])
|
||||
(update_config "en-US" "dictionary")
|
||||
(update_config "en-US" "disabledRules")
|
||||
(update_config "en-US" "hiddenFalsePositives")
|
||||
(map! [n :buffer :verbose] :zug (fn [] (exec! [[:normal! "zug"]])
|
||||
(map! [n :buffer :verbose] :zug (fn [] (exec! [normal! zug])
|
||||
(update_config "en-US" "dictionary")
|
||||
nil)
|
||||
"Remove word from spellfile and update ltex")
|
||||
(map! [n :buffer :verbose] :zg (fn [] (exec! [[:normal! "zg"]])
|
||||
(map! [n :buffer :verbose] :zg (fn [] (exec! [normal! zg])
|
||||
(update_config "en-US" "dictionary")
|
||||
nil)
|
||||
"Add word to spellfile and update ltex")
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
:window {:mappings {:/ "noop"
|
||||
:g/ "fuzzy_finder"
|
||||
:f "noop"
|
||||
:ff (fn [] (exec! [[:Telescope "find_files"]]))
|
||||
:fg (fn [] (exec! [[:Telescope "live_grep"]]))
|
||||
:ff (fn [] (exec! [Telescope find_files]))
|
||||
:fg (fn [] (exec! [Telescope live_grep]))
|
||||
:<CR> "custom_open"
|
||||
:e "open"
|
||||
:<S-Right> (fn [])
|
||||
@@ -38,19 +38,19 @@
|
||||
:height (+ (math.ceil height) 1)
|
||||
:row 0
|
||||
:col 2})]
|
||||
(exec! [[:setlocal "nonumber"]])
|
||||
(exec! [setlocal nonumber])
|
||||
(vim.api.nvim_buf_attach bufnr false {:on_detach (fn [_ bufnr]
|
||||
(image:delete bufnr {:free true}))})
|
||||
(image:display 1 0 bufnr {}))
|
||||
_ (do
|
||||
(exec! [[:silent
|
||||
"!file -bL --mime" quoted_path
|
||||
"| grep -qv '^text\\|^inode\\|^application/json'"]])
|
||||
(exec! [silent
|
||||
!file -bL --mime `(.. "'" quoted_path "'")
|
||||
| grep -qv "'" ^text\\|^inode\\|^application/json "'"])
|
||||
(if (= vim.v.shell_error 1)
|
||||
((. (require :neo-tree.sources.filesystem.commands) :open_with_window_picker) state)
|
||||
(exec! [[:silent
|
||||
"!xdg-open" quoted_path
|
||||
"&"]]))))))}}
|
||||
(exec! [silent
|
||||
!xdg-open `(.. "'" quoted_path "'")
|
||||
&]))))))}}
|
||||
:renderers {:directory [[:indent]
|
||||
[:icon]
|
||||
[:current_filter]
|
||||
@@ -67,7 +67,7 @@
|
||||
[:git_status]]}})
|
||||
|
||||
(map! [n] :f ":Neotree focus<CR>")
|
||||
(map! [n] :F (fn [] (exec! [[:Neotree "toggle"] [:Neotree "toggle" "action=show"]])))
|
||||
(map! [n] :F (fn [] (exec! [Neotree toggle] [Neotree toggle action=show])))
|
||||
|
||||
(augroup! :neo-tree [[FileType] [qf] "set nobuflisted|call feedkeys(\"F\")"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user