This commit is contained in:
xfy
2024-09-09 21:15:11 +08:00
parent adffbaa8f1
commit ac78b511c3
5 changed files with 48 additions and 0 deletions

1
init.lua Normal file
View File

@ -0,0 +1 @@
require("rua.core")

1
lua/rua/core/init.lua Normal file
View File

@ -0,0 +1 @@
require("rua.core.options")

20
lua/rua/core/options.lua Normal file
View 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
View 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
View File

@ -0,0 +1,4 @@
return {
"nvim-lua/plenary.nvim", -- lua functions that many plugins use
"christoomey/vim-tmux-navigator", -- tmux & split window navigation
}