neovim: vim.o -> vim.opt

This commit is contained in:
FollieHiyuki 2021-10-05 00:53:29 +07:00
parent 018e719884
commit 8a8e0db586
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
vim.api.nvim_command('hi clear')
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
local async

View File

@ -76,7 +76,7 @@ wk.register({
-- Switch between tabs and spaces
['<A-t>'] = {
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('echomsg "Switched to indent with tabs"')
else

View File

@ -102,7 +102,7 @@ function M.lsp_conf()
-- if p then lua_lib_path[p] = true 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/*/start/*')
-- end