mirror of
https://github.com/DefectingCat/nvim
synced 2025-07-15 16:51:33 +00:00
add lazy
This commit is contained in:
1
lua/rua/core/init.lua
Normal file
1
lua/rua/core/init.lua
Normal file
@ -0,0 +1 @@
|
|||||||
|
require("rua.core.options")
|
20
lua/rua/core/options.lua
Normal file
20
lua/rua/core/options.lua
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
local opt = vim.opt
|
||||||
|
|
||||||
|
vim.g.dap_virtual_text = true
|
||||||
|
vim.o.cursorlineopt = "number,line"
|
||||||
|
|
||||||
|
opt.foldmethod = "expr"
|
||||||
|
opt.foldexpr = "nvim_treesitter#foldexpr()"
|
||||||
|
opt.foldlevel = 20
|
||||||
|
opt.ignorecase = true
|
||||||
|
opt.wildignore:append({ "*/node_modules/*" })
|
||||||
|
opt.clipboard:append({ "unnamedplus" })
|
||||||
|
--[[ opt.iskeyword:append("-") ]]
|
||||||
|
opt.termguicolors = true -- True color support
|
||||||
|
opt.autoindent = true --- Good auto indent
|
||||||
|
opt.scrolloff = 3
|
||||||
|
opt.encoding = utf8
|
||||||
|
opt.fileencoding = utf8
|
||||||
|
opt.cursorline = true
|
||||||
|
opt.relativenumber = true
|
||||||
|
opt.number = true
|
22
lua/rua/lazy.lua
Normal file
22
lua/rua/lazy.lua
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
|
if not vim.loop.fs_stat(lazypath) then
|
||||||
|
vim.fn.system({
|
||||||
|
"git",
|
||||||
|
"clone",
|
||||||
|
"--filter=blob:none",
|
||||||
|
"https://github.com/folke/lazy.nvim.git",
|
||||||
|
"--branch=stable", -- latest stable release
|
||||||
|
lazypath,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
|
require("lazy").setup({ { import = "rua.plugins" }, { import = "rua.plugins.lsp" } }, {
|
||||||
|
checker = {
|
||||||
|
enabled = true,
|
||||||
|
notify = false,
|
||||||
|
},
|
||||||
|
change_detection = {
|
||||||
|
notify = false,
|
||||||
|
},
|
||||||
|
})
|
4
lua/rua/plugins/init.lua
Normal file
4
lua/rua/plugins/init.lua
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
return {
|
||||||
|
"nvim-lua/plenary.nvim", -- lua functions that many plugins use
|
||||||
|
"christoomey/vim-tmux-navigator", -- tmux & split window navigation
|
||||||
|
}
|
Reference in New Issue
Block a user