disable mouse in neovim

main
Alpha Chen 2 years ago
parent 10cfe682a0
commit 67f08ba762
No known key found for this signature in database

@ -25,6 +25,8 @@
(each [_ v (ipairs [:up :down :left :right])] (each [_ v (ipairs [:up :down :left :right])]
(vim.keymap.set :n (.. "<" v ">") :<nop>)) (vim.keymap.set :n (.. "<" v ">") :<nop>))
(set vim.o.mouse nil)
;; quick save ;; quick save
(vim.keymap.set :n "\\\\" ":write<cr>") (vim.keymap.set :n "\\\\" ":write<cr>")
(vim.keymap.set :i "\\\\" "<esc>:write<cr>") (vim.keymap.set :i "\\\\" "<esc>:write<cr>")

Loading…
Cancel
Save