neovim: vim.o -> vim.opt

This commit is contained in:
FollieHiyuki 2021-10-05 00:53:29 +07:00
parent 1f973f3850
commit 2248faa795
No known key found for this signature in database
GPG Key ID: 813CF484F4993419
3 changed files with 3 additions and 3 deletions

View File

@ -374,7 +374,7 @@ function M.highlight()
-- Reset everything -- Reset everything
vim.api.nvim_command('hi clear') vim.api.nvim_command('hi clear')
if vim.fn.exists('syntax_on') then vim.api.nvim_command('syntax reset') end if vim.fn.exists('syntax_on') then vim.api.nvim_command('syntax reset') end
vim.o.background = 'dark' vim.opt.background = 'dark'
-- Load highlight groups -- Load highlight groups
local async local async

View File

@ -76,7 +76,7 @@ wk.register({
-- Switch between tabs and spaces -- Switch between tabs and spaces
['<A-t>'] = { ['<A-t>'] = {
function() function()
if vim.o.expandtab == true then if vim.opt.expandtab == true then
vim.api.nvim_command('set noexpandtab nosmarttab softtabstop& shiftwidth&') vim.api.nvim_command('set noexpandtab nosmarttab softtabstop& shiftwidth&')
vim.api.nvim_command('echomsg "Switched to indent with tabs"') vim.api.nvim_command('echomsg "Switched to indent with tabs"')
else else

View File

@ -102,7 +102,7 @@ function M.lsp_conf()
-- if p then lua_lib_path[p] = true end -- if p then lua_lib_path[p] = true end
-- end -- end
-- end -- end
-- for _, site in pairs(vim.split(vim.o.packpath, ',')) do -- for _, site in pairs(vim.split(vim.opt.packpath, ',')) do
-- add(site .. '/pack/*/opt/*') -- add(site .. '/pack/*/opt/*')
-- add(site .. '/pack/*/start/*') -- add(site .. '/pack/*/start/*')
-- end -- end