mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-11-24 16:28:22 -05:00
neovim: vim.o -> vim.opt
This commit is contained in:
parent
1f973f3850
commit
2248faa795
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user