trixy/fnl/options/opts.fnl

82 lines
2.1 KiB
Plaintext
Raw Permalink Normal View History

(import-macros {: set! : g! : exec!} :hibiscus.vim)
2024-07-12 22:10:34 +02:00
2024-07-20 13:18:47 +02:00
(set! number true) ; enable line number
2024-07-12 22:10:34 +02:00
(set! relativenumber true) ; enable relative line number
(set! undofile true) ; persistent undo
(set! backup false) ; disable backup
(set! autowrite true) ; auto write buffer when it's not focused
2024-07-20 13:18:47 +02:00
(set! ignorecase true) ; case insensitive on search..
(set! list true) ; display listchars
(set! smartindent false) ; smarter indentation
2024-07-12 22:10:34 +02:00
(set! splitright true) ; split right instead of left
2024-07-14 19:04:45 +02:00
(set! splitkeep :screen) ; stabilize split
2024-07-12 22:10:34 +02:00
(set! startofline false) ; don't go to the start of the line when moving to another file
(set! swapfile false) ; disable swapfile
(set! termguicolors true) ; true colours for better experience
2024-07-20 13:18:47 +02:00
(set! wrap false) ; don't wrap lines
2024-07-14 19:04:45 +02:00
(set! backupcopy :yes) ; fix weirdness for stuff that replaces the entire file when hot reloading
2024-07-12 22:10:34 +02:00
(set! smarttab false)
(set! tabstop 4)
(set! softtabstop 4)
(set! shiftwidth 4)
2024-07-20 13:18:47 +02:00
(set! expandtab false)
2024-07-12 22:10:34 +02:00
(set! compatible false) ; disable compatibility with old vi
(set! showmatch true) ; show matches while searching for text
(set! hlsearch true) ; highlight text that has been searched
(set! incsearch true) ; incramentally search
(set! autoindent true)
(set! wildmode "longest,list")
2024-08-14 16:19:09 +02:00
(set! inccommand :split)
; (lua "opt.formatoptions:remove \"o\"")
2024-07-14 19:04:45 +02:00
(set! mouse :v)
(set! mouse :a)
; (set! clipboard :unnamedplus) ; use system clipboard
2024-07-12 22:10:34 +02:00
(set! ttyfast true)
(set! cursorline true)
(set! splitbelow true)
; (set! autochdir true)
2024-07-14 19:04:45 +02:00
(set! signcolumn :yes:1)
2024-07-20 13:18:47 +02:00
(set! showmode false)
(set! cmdheight 0)
(vim.cmd "syntax match keyword \"\\<lambda\\>\" conceal cchar=λ")
(set! conceallevel 1)
; Skip loading of following neovim builtins
(local default_plugins {
:2html_plugin
:getscript
:getscriptPlugin
:gzip
:logipat
:netrw
:netrwPlugin
:netrwSettings
:netrwFileHandlers
:matchit
:tar
:tarPlugin
:rrhelper
:spellfile_plugin
:vimball
:vimballPlugin
:zip
:zipPlugin
:tutor
:rplugin
:syntax
:synmenu
:optwin
:compiler
:bugreport
:ftplugin })
(each [_ plug (ipairs default_plugins)]
(g! (.. :loaded plug) 1))