diff options
author | Chris <[email protected]> | 2021-06-27 01:32:29 -0400 |
---|---|---|
committer | Chris <[email protected]> | 2021-06-27 01:32:29 -0400 |
commit | ad24fd684ccf74d37876033c5e09b71c8f48be06 (patch) | |
tree | b9d0f02a8f7a53d9771676d6ae5e913d683d8b08 | |
parent | aa78accb6fbe76b8e257909ab301b672f613002d (diff) |
update settings
-rw-r--r-- | lua/settings.lua | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lua/settings.lua b/lua/settings.lua index 21131537..1c36405e 100644 --- a/lua/settings.lua +++ b/lua/settings.lua @@ -1,12 +1,12 @@ vim.cmd('set iskeyword+=-') -- treat dash separated words as a word text object" vim.cmd('set shortmess+=c') -- Don't pass messages to |ins-completion-menu|. vim.cmd('set inccommand=split') -- Make substitution work in realtime --- vim.o.hidden = O.hidden_files -- Required to keep multiple buffers open multiple buffers +vim.o.hidden = O.hidden_files -- Required to keep multiple buffers open multiple buffers vim.o.title = true TERMINAL = vim.fn.expand('$TERMINAL') vim.cmd('let &titleold="'..TERMINAL..'"') vim.o.titlestring="%<%F%=%l/%L - nvim" --- vim.wo.wrap = O.wrap_lines -- Display long lines as just one line +vim.wo.wrap = O.wrap_lines -- Display long lines as just one line vim.cmd('set whichwrap+=<,>,[,],h,l') -- move to next line with theses keys vim.cmd('syntax on') -- syntax highlighting vim.o.pumheight = 10 -- Makes popup menu smaller @@ -23,19 +23,19 @@ vim.cmd('set ts=4') -- Insert 2 spaces for a tab vim.cmd('set sw=4') -- Change the number of space characters inserted for indentation vim.cmd('set expandtab') -- Converts tabs to spaces vim.bo.smartindent = true -- Makes indenting smart --- vim.wo.number = O.number -- set numbered lines --- vim.wo.relativenumber = O.relative_number -- set relative number --- vim.wo.cursorline = O.cursorline -- set highlighting of the current line +vim.wo.number = O.number -- set numbered lines +vim.wo.relativenumber = O.relative_number -- set relative number +vim.wo.cursorline = O.cursorline -- set highlighting of the current line vim.o.showtabline = 2 -- Always show tabs vim.o.showmode = false -- We don't need to see things like -- INSERT -- anymore vim.o.backup = false -- This is recommended by coc vim.o.writebackup = false -- This is recommended by coc vim.o.swapfile = false -- Do not write any swp files --- vim.o.undodir = CACHE_PATH .. '/undo' -- Set undo directory +vim.o.undodir = CACHE_PATH .. '/undo' -- Set undo directory vim.o.undofile = true -- Enable persistent undo vim.wo.signcolumn = "yes" -- Always show the signcolumn, otherwise it would shift the text each time vim.o.updatetime = 300 -- Faster completion --- vim.o.timeoutlen = O.timeoutlen -- By default timeoutlen is 1000 ms +vim.o.timeoutlen = O.timeoutlen -- By default timeoutlen is 1000 ms vim.o.clipboard = "unnamedplus" -- Copy paste between vim and everything else -- vim.g.nvim_tree_disable_netrw = O.nvim_tree_disable_netrw -- enable netrw for remote gx gf support (must be set before plugin's packadd) vim.cmd('filetype plugin on') -- filetype detection |