2023-08-27 13:31:42 +03:00
|
|
|
-- Surdeus init file.
|
|
|
|
-- surdeus@gmail.com
|
2023-08-24 12:48:42 +03:00
|
|
|
|
2023-08-27 13:31:42 +03:00
|
|
|
vim.opt.swapfile = false
|
2023-08-24 12:48:42 +03:00
|
|
|
|
|
|
|
vim.o.number = true
|
2023-08-26 15:09:08 +03:00
|
|
|
vim.o.cursorline = true
|
2023-08-24 12:48:42 +03:00
|
|
|
vim.api.nvim_cmd({
|
|
|
|
cmd = 'colorscheme',
|
2023-08-26 15:09:08 +03:00
|
|
|
args = {'jien'},
|
2023-08-24 12:48:42 +03:00
|
|
|
}, {})
|
|
|
|
|
2023-08-27 13:31:42 +03:00
|
|
|
require("indent")
|
2023-08-26 15:09:08 +03:00
|
|
|
require("maps")
|
|
|
|
|
|
|
|
-- Do not put basic things after it,
|
|
|
|
-- because the manager does not like it.
|
|
|
|
|
2023-08-26 10:50:49 +03:00
|
|
|
-- Plugin manager "Lazy"
|
|
|
|
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)
|
|
|
|
|
|
|
|
-- Plugins
|
|
|
|
plugins = {
|
|
|
|
require("plugin.tree")
|
|
|
|
}
|
|
|
|
require("lazy").setup(plugins, opts)
|
|
|
|
|
|
|
|
-- File tree plugin configuration
|
|
|
|
vim.g.loaded_netrw = 1
|
|
|
|
vim.g.loaded_netrwPlugin = 1
|
|
|
|
vim.opt.termguicolors = true
|
|
|
|
require("nvim-tree").setup({
|
|
|
|
sort_by = "case_sensitive",
|
|
|
|
view = {
|
|
|
|
width = 30,
|
|
|
|
},
|
|
|
|
renderer = {
|
|
|
|
group_empty = true,
|
|
|
|
},
|
|
|
|
filters = {
|
|
|
|
dotfiles = false,
|
|
|
|
},
|
2023-08-27 13:31:42 +03:00
|
|
|
git = {
|
|
|
|
enable=false,
|
|
|
|
},
|
2023-08-26 10:50:49 +03:00
|
|
|
})
|
|
|
|
|
2023-08-24 12:48:42 +03:00
|
|
|
|