@@ -4,7 +4,7 @@ vim.g.picker = "snacks" -- fzf or snacks
44vim .g .prettier_tool = " prettierd" -- prettier or prettierd
55vim .g .statusline = " lualine" -- lualine or heirline
66
7- local opt = vim .opt
7+ local opt = vim .o
88
99-- Sync clipboard between OS and Neovim.
1010-- Schedule the setting after `UiEnter` because it can increase startup-time.
@@ -21,14 +21,14 @@ opt.breakindent = true -- Visually indent wrapped lines
2121opt .conceallevel = 2 -- Hide * markup for bold and italic, but not markers with substitutions
2222opt .confirm = true -- Confirm to save changes before exiting modified buffer
2323opt .cursorline = true -- Show which line your cursor is on
24- opt .diffopt :append (" iwhite" ) -- Ignore whitespace in diff mode
24+ vim . opt .diffopt :append (" iwhite" ) -- Ignore whitespace in diff mode
2525opt .grepformat = " %f:%l:%c:%m" -- Set grep format
2626opt .grepprg = " rg --vimgrep" -- Use ripgrep as grepprg
2727opt .ignorecase = true -- Case-insensitive searching unless \C
2828opt .inccommand = " split" -- Preview substitutions live, as you type!
2929opt .laststatus = 3 -- Global statusline
3030opt .list = true -- Display whitespace characters
31- opt .listchars = { tab = " » " , trail = " ·" , nbsp = " ␣" } -- Strings to use in list mode
31+ vim . opt .listchars = { tab = " » " , trail = " ·" , nbsp = " ␣" } -- Strings to use in list mode
3232opt .mouse = " a" -- Enable mouse mode
3333opt .number = true -- Show line number
3434opt .relativenumber = true -- Relative line numbers
@@ -50,10 +50,10 @@ opt.wrap = false -- Disable line wrap
5050
5151-- Fold settings for ufo plugin.
5252-- They need to be defined here instead of inside the plugin config because it causes issues with neotree.
53- vim . o .foldcolumn = " 0" -- 0 or 1
54- vim . o .foldlevel = 99
55- vim . o .foldlevelstart = 99
56- vim . o .foldenable = true
53+ opt .foldcolumn = " 0" -- 0 or 1
54+ opt .foldlevel = 99
55+ opt .foldlevelstart = 99
56+ opt .foldenable = true
5757
5858-- Filetype mappings
5959vim .filetype .add ({
0 commit comments