summaryrefslogtreecommitdiff
path: root/plugin/basics.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/basics.lua')
-rw-r--r--plugin/basics.lua49
1 files changed, 25 insertions, 24 deletions
diff --git a/plugin/basics.lua b/plugin/basics.lua
index f8f6cd0..3a5cf4a 100644
--- a/plugin/basics.lua
+++ b/plugin/basics.lua
@@ -2,28 +2,29 @@
-- General Neovim settings and configuration
-----------------------------------------------------------
-local g = vim.g -- Global variables
-local opt = vim.opt -- Set options (global/buffer/windows-scoped)
+local g = vim.g -- Global variables
+local opt = vim.opt -- Set options (global/buffer/windows-scoped)
local cache_dir = os.getenv('HOME') .. '/.cache/nvim/'
-----------------------------------------------------------
-- General
-----------------------------------------------------------
-opt.mouse = 'a' -- Enable mouse support
-opt.swapfile = false -- Don't use swapfile
-opt.completeopt = 'menuone,noinsert,noselect' -- Autocomplete options
-opt.history = 500 -- Lines vim should remember
+opt.mouse = 'a' -- Enable mouse support
+opt.swapfile = false -- Don't use swapfile
+opt.completeopt = 'menuone,noinsert,noselect' -- Autocomplete options
+opt.history = 500 -- Lines vim should remember
opt.backup = false
opt.writebackup = false
opt.shell = 'zsh'
-opt.magic = true -- Vim's regular expression magic
-opt.mat = 2 -- How many tenths of seconds ro blink
-opt.fileformats = 'unix,mac,dos' -- Unix as standard file format
-opt.encoding = 'utf-8' -- Encoding
+opt.magic = true -- Vim's regular expression magic
+opt.mat = 2 -- How many tenths of seconds ro blink
+opt.fileformats = 'unix,mac,dos' -- Unix as standard file format
+opt.encoding = 'utf-8' -- Encoding
opt.viewoptions = 'folds,cursor,curdir,slash,unix'
opt.wildignorecase = true
-opt.wildignore = '.git,.hg,.svn,*.pyc,*.o,*.out,*.jpg,*.jpeg,*.png,*.gif,*.zip,*.DS_Store,**/node_modules/**,**/bower_modules/**'
-opt.hlsearch = false -- No highlight search
+opt.wildignore =
+'.git,.hg,.svn,*.pyc,*.o,*.out,*.jpg,*.jpeg,*.png,*.gif,*.zip,*.DS_Store,**/node_modules/**,**/bower_modules/**'
+opt.hlsearch = false -- No highlight search
opt.incsearch = true
opt.ignorecase = true
opt.backspace = 'indent,eol,start'
@@ -33,22 +34,22 @@ opt.signcolumn = 'number' -- Display signs in the 'number' column.
-----------------------------------------------------------
-- Tabs, indent
-----------------------------------------------------------
-opt.shiftwidth = 4 -- Shift 4 spaces when tab
-opt.tabstop = 4 -- 1 tab == 4 spaces
-opt.softtabstop = 4 -- 1 tab == 4 spaces
-opt.expandtab = false -- Use spaces instead of tabs
-opt.smartindent = true -- Autoindent new lines
-opt.autoindent = true -- Copy indent from current line when starting new line
-opt.cindent = true -- C programming indentation
+opt.shiftwidth = 4 -- Shift 4 spaces when tab
+opt.tabstop = 4 -- 1 tab == 4 spaces
+opt.softtabstop = 4 -- 1 tab == 4 spaces
+opt.expandtab = false -- Use spaces instead of tabs
+opt.smartindent = true -- Autoindent new lines
+opt.autoindent = true -- Copy indent from current line when starting new line
+opt.cindent = true -- C programming indentation
-----------------------------------------------------------
-- Memory, CPU
-----------------------------------------------------------
-opt.hidden = true -- Enable background buffers
-opt.lazyredraw = true -- Faster scrolling
-opt.synmaxcol = 240 -- Max column for syntax highlight
-opt.updatetime = 300 -- ms to wait for trigger an event
-opt.timeoutlen = 500 -- ms to wait for a mapped sequence to complete.
+opt.hidden = true -- Enable background buffers
+opt.lazyredraw = true -- Faster scrolling
+opt.synmaxcol = 240 -- Max column for syntax highlight
+opt.updatetime = 300 -- ms to wait for trigger an event
+opt.timeoutlen = 500 -- ms to wait for a mapped sequence to complete.
opt.foldenable = false
-----------------------------------------------------------