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
018e719884
commit
8a8e0db586
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user