Skip to content

Commit

Permalink
use vim.o instead of vim.opt
Browse files Browse the repository at this point in the history
  • Loading branch information
Sqvid committed Mar 21, 2024
1 parent e508bba commit 8396cf0
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 32 deletions.
42 changes: 20 additions & 22 deletions neovim/.config/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,30 +19,28 @@ require("lazy-setup")

--------------------------------------------------------------------------------
-- Options:
local opt = vim.opt
local o = vim.o
local cmd = vim.cmd

opt.cursorline = true
opt.ignorecase = true
opt.smartcase = true
opt.wrapscan = false
opt.number = true
opt.relativenumber = true
opt.scrolloff = 1
opt.signcolumn = "yes"
opt.termguicolors = true
opt.timeoutlen = 300
opt.colorcolumn = "81"
opt.textwidth = 80
opt.tabstop = 4
opt.shiftwidth = 4
opt.showmode = false
opt.laststatus = 3
opt.spelllang = "en_gb"
opt.hidden = true
opt.mouse = "v"
-- Add OCaml indent tool to runtimepath
opt.runtimepath:prepend("~/.opam/cs3110-2023sp/share/ocp-indent/vim")
o.colorcolumn = "81"
o.cursorline = true
o.hidden = true
o.ignorecase = true
o.laststatus = 3
o.mouse = "v"
o.number = true
o.relativenumber = true
o.scrolloff = 1
o.shiftwidth = 4
o.showmode = false
o.signcolumn = "yes"
o.smartcase = true
o.spelllang = "en_gb"
o.tabstop = 4
o.termguicolors = true
o.textwidth = 80
o.timeoutlen = 300
o.wrapscan = false

cmd("colorscheme tokyonight")

Expand Down
21 changes: 11 additions & 10 deletions neovim/.config/nvim/lazy-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
"cmp-nvim-lsp": { "branch": "main", "commit": "5af77f54de1b16c34b23cba810150689a3a90312" },
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
"fzf.vim": { "branch": "master", "commit": "8ea9574b3ebdc44fbe3dc6381a13f9ce0c290e2f" },
"indent-blankline.nvim": { "branch": "master", "commit": "821a7acd88587d966f7e464b0b3031dfe7f5680c" },
"conform.nvim": { "branch": "master", "commit": "bf109f061fc3cd75394b7823923187ae045cbf22" },
"fzf.vim": { "branch": "master", "commit": "e69f2dcdad44e7eafe764969ed7281d7290db18f" },
"indent-blankline.nvim": { "branch": "master", "commit": "3d08501caef2329aba5121b753e903904088f7e6" },
"lazy.nvim": { "branch": "main", "commit": "83493db50a434a4c5c648faf41e2ead80f96e478" },
"lualine.nvim": { "branch": "master", "commit": "7d131a8d3ba5016229e8a1d08bf8782acea98852" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "82c7cb08ddb836ad938b2708e50085f12a8825d2" },
"mason.nvim": { "branch": "main", "commit": "3b5068f0fc565f337d67a2d315d935f574848ee7" },
"lualine.nvim": { "branch": "master", "commit": "b5e8bb642138f787a2c1c5aedc2a78cb2cebbd67" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "2ba17cecfde8b8c7c7c287909a1e4de895223df6" },
"mason.nvim": { "branch": "main", "commit": "751b1fcbf3d3b783fcf8d48865264a9bcd8f9b10" },
"nvim-cmp": { "branch": "main", "commit": "04e0ca376d6abdbfc8b52180f8ea236cbfddf782" },
"nvim-lspconfig": { "branch": "master", "commit": "eb012f03bb3b4aca9e875d146008b923d0e07e65" },
"nvim-treesitter": { "branch": "master", "commit": "06b5fda797ea4c363e9fe17b160c33818be8d319" },
"nvim-web-devicons": { "branch": "master", "commit": "0bb67ef952ea3eb7b1bac9c011281471d99a27bc" },
"tokyonight.nvim": { "branch": "main", "commit": "610179f7f12db3d08540b6cc61434db2eaecbcff" },
"vimtex": { "branch": "master", "commit": "2bb7cdc17c0ac18266e4c96083290956169c1c38" }
"nvim-lspconfig": { "branch": "master", "commit": "d67715d3b746a19e951b6b0a99663fa909bb9e64" },
"nvim-treesitter": { "branch": "master", "commit": "c28396de30b92a5af049037c2bd543a932a37a78" },
"nvim-web-devicons": { "branch": "master", "commit": "cb0c967c9723a76ccb1be0cc3a9a10e577d2f6ec" },
"tokyonight.nvim": { "branch": "main", "commit": "fbe3a27378fdd51a8ddd04f57012455436916a62" },
"vimtex": { "branch": "master", "commit": "73605f8b7655301ea47a2c355500ab4984f41b91" }
}

0 comments on commit 8396cf0

Please sign in to comment.