mirror of
https://github.com/Baipyrus/nvim-config.git
synced 2024-12-25 21:01:45 +00:00
use different option type
This commit is contained in:
parent
a96ae14c51
commit
54fe57ca76
@ -8,76 +8,77 @@ vim.api.nvim_exec2('language en_US', {})
|
|||||||
|
|
||||||
-- Shell options
|
-- Shell options
|
||||||
-- Sets the shell to use for system() and ! commands
|
-- Sets the shell to use for system() and ! commands
|
||||||
vim.o.shell = 'powershell.exe'
|
vim.opt.shell = 'powershell.exe'
|
||||||
vim.o.shellcmdflag = '-NonInteractive -NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command '
|
vim.opt.shellcmdflag = '-NonInteractive -NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command '
|
||||||
vim.o.shellxquote = ''
|
vim.opt.shellxquote = ''
|
||||||
vim.o.shellquote = ''
|
vim.opt.shellquote = ''
|
||||||
vim.o.shellredir = '2>&1 | Out-File -Encoding UTF8 %s'
|
vim.opt.shellredir = '2>&1 | Out-File -Encoding UTF8 %s'
|
||||||
vim.o.shellpipe = '2>&1 | Out-File -Encoding UTF8 %s'
|
vim.opt.shellpipe = '2>&1 | Out-File -Encoding UTF8 %s'
|
||||||
|
|
||||||
-- Format settings
|
-- Format settings
|
||||||
-- Make line numbers default
|
-- Make line numbers default
|
||||||
vim.o.nu = true
|
vim.opt.nu = true
|
||||||
vim.o.relativenumber = true
|
vim.opt.relativenumber = true
|
||||||
|
|
||||||
-- Indenting
|
-- Indenting
|
||||||
vim.o.tabstop = 4
|
vim.opt.tabstop = 4
|
||||||
vim.o.softtabstop = 4
|
vim.opt.softtabstop = 4
|
||||||
vim.o.shiftwidth = 4
|
vim.opt.shiftwidth = 4
|
||||||
vim.o.expandtab = true
|
vim.opt.expandtab = true
|
||||||
|
|
||||||
-- Line wrap
|
-- Line wrap
|
||||||
vim.o.wrap = false
|
vim.opt.wrap = false
|
||||||
|
|
||||||
-- Enable mouse mode, can be useful for resizing splits for example!
|
-- Enable mouse mode, can be useful for resizing splits for example!
|
||||||
vim.o.mouse = 'a'
|
vim.opt.mouse = 'a'
|
||||||
|
|
||||||
-- Don't show the mode, since it's already in status line
|
-- Don't show the mode, since it's already in status line
|
||||||
vim.o.showmode = false
|
vim.opt.showmode = false
|
||||||
|
|
||||||
-- Sync clipboard between OS and Neovim.
|
-- Sync clipboard between OS and Neovim.
|
||||||
-- Remove this option if you want your OS clipboard to remain independent.
|
-- Remove this option if you want your OS clipboard to remain independent.
|
||||||
-- See `:help 'clipboard'`
|
-- See `:help 'clipboard'`
|
||||||
vim.o.clipboard = 'unnamedplus'
|
vim.opt.clipboard = 'unnamedplus'
|
||||||
|
|
||||||
-- Enable break indent
|
-- Enable break indent
|
||||||
vim.o.breakindent = true
|
vim.opt.breakindent = true
|
||||||
|
|
||||||
-- Save undo history
|
-- Save undo history
|
||||||
vim.o.undofile = true
|
vim.opt.undofile = true
|
||||||
|
|
||||||
-- Case-insensitive searching UNLESS \C or capital in search
|
-- Case-insensitive searching UNLESS \C or capital in search
|
||||||
vim.o.ignorecase = true
|
vim.opt.ignorecase = true
|
||||||
vim.o.smartcase = true
|
vim.opt.smartcase = true
|
||||||
|
|
||||||
-- Keep signcolumn on by default
|
-- Keep signcolumn on by default
|
||||||
vim.o.signcolumn = 'yes'
|
vim.opt.signcolumn = 'yes'
|
||||||
|
|
||||||
-- Decrease update time
|
-- Decrease update time
|
||||||
vim.o.updatetime = 250
|
vim.opt.updatetime = 250
|
||||||
vim.o.timeoutlen = 300
|
vim.opt.timeoutlen = 300
|
||||||
|
|
||||||
-- Configure how new splits should be opened
|
-- Configure how new splits should be opened
|
||||||
vim.o.splitright = true
|
vim.opt.splitright = true
|
||||||
vim.o.splitbelow = true
|
vim.opt.splitbelow = true
|
||||||
|
|
||||||
-- Sets how neovim will display certain whitespace in the editor.
|
-- Sets how neovim will display certain whitespace in the editor.
|
||||||
-- See :help 'list'
|
-- See :help 'list'
|
||||||
-- and :help 'listchars'
|
-- and :help 'listchars'
|
||||||
vim.o.list = true
|
vim.opt.list = true
|
||||||
vim.o.listchars = {
|
vim.opt.listchars = {
|
||||||
tab = '» ',
|
tab = '» ',
|
||||||
trail = '·',
|
trail = '·',
|
||||||
nbsp = '␣'
|
nbsp = '␣',
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Preview substitutions live, as you type!
|
-- Preview substitutions live, as you type!
|
||||||
vim.o.inccommand = 'split'
|
vim.opt.inccommand = 'split'
|
||||||
|
|
||||||
-- Show which line your cursor is on
|
-- Show which line your cursor is on
|
||||||
vim.o.cursorline = true
|
vim.opt.cursorline = true
|
||||||
|
|
||||||
-- Minimal number of screen lines to keep above and below the cursor.
|
-- Minimal number of screen lines to keep above and below the cursor.
|
||||||
vim.o.scrolloff = 8
|
vim.opt.scrolloff = 8
|
||||||
|
|
||||||
-- vim: ts=2 sts=2 sw=2 et
|
-- vim: ts=2 sts=2 sw=2 et
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user