From 8a8e0db5861f1a2f276aed195f002354efb966b4 Mon Sep 17 00:00:00 2001 From: FollieHiyuki Date: Tue, 5 Oct 2021 00:53:29 +0700 Subject: [PATCH] neovim: vim.o -> vim.opt --- home/.config/nvim/lua/colors/nord.lua | 2 +- home/.config/nvim/lua/mappings.lua | 2 +- home/.config/nvim/lua/modules/lsp.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/home/.config/nvim/lua/colors/nord.lua b/home/.config/nvim/lua/colors/nord.lua index 823f320..fc6861a 100644 --- a/home/.config/nvim/lua/colors/nord.lua +++ b/home/.config/nvim/lua/colors/nord.lua @@ -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 diff --git a/home/.config/nvim/lua/mappings.lua b/home/.config/nvim/lua/mappings.lua index 0b465ff..65960bf 100644 --- a/home/.config/nvim/lua/mappings.lua +++ b/home/.config/nvim/lua/mappings.lua @@ -76,7 +76,7 @@ wk.register({ -- Switch between tabs and spaces [''] = { 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 diff --git a/home/.config/nvim/lua/modules/lsp.lua b/home/.config/nvim/lua/modules/lsp.lua index 23be636..c01c179 100644 --- a/home/.config/nvim/lua/modules/lsp.lua +++ b/home/.config/nvim/lua/modules/lsp.lua @@ -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