feat(ansible): install tmux/mc/git/nvim with laptop dotfiles
This commit is contained in:
51
ansible/files/operator-dotfiles/nvim/lua/options.lua
Normal file
51
ansible/files/operator-dotfiles/nvim/lua/options.lua
Normal file
@@ -0,0 +1,51 @@
|
||||
-- ======================================================================
|
||||
-- options.lua — Vim options and settings
|
||||
-- ======================================================================
|
||||
|
||||
local opt = vim.opt
|
||||
|
||||
-- Clipboard
|
||||
opt.clipboard = "unnamedplus"
|
||||
|
||||
-- Editing behavior
|
||||
opt.backspace = { "indent", "eol", "start" }
|
||||
opt.mouse = "r"
|
||||
opt.compatible = false
|
||||
|
||||
-- UI
|
||||
opt.number = true
|
||||
opt.cursorline = true
|
||||
opt.showcmd = true
|
||||
opt.showmode = true
|
||||
opt.showmatch = true
|
||||
opt.scrolloff = 10
|
||||
opt.wrap = false
|
||||
|
||||
-- Indentation
|
||||
opt.shiftwidth = 4
|
||||
opt.tabstop = 4
|
||||
opt.expandtab = true
|
||||
|
||||
-- Search
|
||||
opt.incsearch = true
|
||||
opt.ignorecase = true
|
||||
opt.smartcase = true
|
||||
opt.hlsearch = true
|
||||
|
||||
-- Files
|
||||
opt.backup = false
|
||||
opt.history = 1000
|
||||
opt.tags = { "./tags;,tags;" }
|
||||
|
||||
-- Completion
|
||||
opt.wildmenu = true
|
||||
opt.wildmode = { "list", "longest" }
|
||||
opt.wildignore = {
|
||||
"*.docx","*.jpg","*.png","*.gif","*.pdf","*.pyc","*.exe","*.flv","*.img","*.xlsx"
|
||||
}
|
||||
|
||||
-- Filetype detection
|
||||
vim.cmd("filetype on")
|
||||
vim.cmd("filetype plugin on")
|
||||
vim.cmd("filetype indent on")
|
||||
vim.cmd("syntax on")
|
||||
Reference in New Issue
Block a user