Skip to content

Commit

Permalink
Update .config/nvim/init.lua
Browse files Browse the repository at this point in the history
Update .config/nvim/lua/config/lazy.lua
Update .config/nvim/lua/core/options.lua
  • Loading branch information
Hyuga-Tsukui committed Oct 2, 2024
1 parent aca13f8 commit fa956d2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 20 deletions.
1 change: 1 addition & 0 deletions dot_config/nvim/init.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require("core.options")
if not vim.g.vscode then
require("core.options")
require("core.keymaps")
Expand Down
35 changes: 18 additions & 17 deletions dot_config/nvim/lua/config/lazy.lua
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
-- Bootstrap lazy.nvim
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
if vim.v.shell_error ~= 0 then
vim.api.nvim_echo({
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
{ out, "WarningMsg" },
{ "\nPress any key to exit..." },
}, true, {})
vim.fn.getchar()
os.exit(1)
end
if not vim.g.vscode then
-- Bootstrap lazy.nvim
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
if vim.v.shell_error ~= 0 then
vim.api.nvim_echo({
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
{ out, "WarningMsg" },
{ "\nPress any key to exit..." },
}, true, {})
vim.fn.getchar()
os.exit(1)
end
end
vim.opt.rtp:prepend(lazypath)
require("lazy").setup("plugins")
end
vim.opt.rtp:prepend(lazypath)

require("lazy").setup("plugins")
5 changes: 2 additions & 3 deletions dot_config/nvim/lua/core/options.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
local opt = vim.opt

-- appearence
opt.guicursor = ""

-- clipboard
opt.clipboard:append("unnamedplus")
opt.scrolloff = 8
Expand All @@ -12,6 +9,8 @@ opt.incsearch = true
opt.hlsearch = false

if not vim.g.vscode then
-- appearence
opt.guicursor = ""
-- line numbers
opt.nu = true
opt.relativenumber = true
Expand Down

0 comments on commit fa956d2

Please sign in to comment.