Alpha Chen 1 year ago
parent 40d3ef9cc1
commit d3ac894f3c
Signed by: alpha
SSH Key Fingerprint: SHA256:3fOT8fiYQG/aK9ntivV3Bqtg8AYQ7q4nV6ZgihOA20g

@ -18,19 +18,21 @@
(set vim.o.ignorecase true) (set vim.o.ignorecase true)
(set vim.o.smartcase true) (set vim.o.smartcase true)
(set vim.g.mapleader " ")
;; disable arrow keys
(each [_ v (ipairs [:up :down :left :right])]
(vim.keymap.set :n (.. "<" v ">") :<nop>))
(set vim.o.mouse nil) (set vim.o.mouse nil)
;; gui ;; gui
(set vim.o.guifont "SauceCodePro Nerd Font") (set vim.o.guifont "Source Code Pro")
(set vim.g.markdown_fenced_languages [:ts=typescript]) (set vim.g.markdown_fenced_languages [:ts=typescript])
;;; mappings
(set vim.g.mapleader " ")
;; disable arrow keys
(each [_ v (ipairs [:up :down :left :right])]
(vim.keymap.set :n (.. "<" v ">") :<nop>))
;; 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>")
@ -50,7 +52,11 @@
;; re-run the last macro ;; re-run the last macro
(vim.keymap.set :n :Q "@@") (vim.keymap.set :n :Q "@@")
;; completion ;; swap `:` and `;`
(vim.keymap.set :n :: ";")
(vim.keymap.set :n ";" ::)
;;; completion
(set vim.o.completeopt "longest,menuone") (set vim.o.completeopt "longest,menuone")
@ -208,7 +214,7 @@
:show_first_indent_level false :show_first_indent_level false
; :show_trailing_blankline_indent false ; :show_trailing_blankline_indent false
; :max_indent_increase 1 ; :max_indent_increase 1
:use_treesitter true ; :use_treesitter true
:use_treesitter_scope true})) :use_treesitter_scope true}))
;;; generate help files ;;; generate help files

Loading…
Cancel
Save