-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.lua
90 lines (75 loc) · 2.27 KB
/
init.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
vim.g.base46_cache = vim.fn.stdpath("data") .. "/nvchad/base46/"
vim.g.mapleader = " "
-- bootstrap lazy and all plugins
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.uv.fs_stat(lazypath) then
local repo = "https://github.com/folke/lazy.nvim.git"
vim.fn.system({ "git", "clone", "--filter=blob:none", repo, "--branch=stable", lazypath })
end
vim.opt.rtp:prepend(lazypath)
local lazy_config = require("configs.lazy")
-- load plugins
require("lazy").setup({
{
"NvChad/NvChad",
lazy = false,
branch = "v2.5",
import = "nvchad.plugins",
},
{ import = "plugins" },
}, lazy_config)
-- load theme
dofile(vim.g.base46_cache .. "defaults")
dofile(vim.g.base46_cache .. "statusline")
require("options")
require("nvchad.autocmds")
-- local api = vim.api
-- Create an autocommand group
-- local dash_group = api.nvim_create_augroup("DashboardGroup", { clear = true })
-- Create an autocommand
-- api.nvim_create_autocmd("VimEnter", {
-- group = dash_group,
-- callback = function()
-- if vim.fn.argc() == 0 and vim.fn.line2byte("$") == -1 then
-- vim.cmd("Nvdash")
-- end
-- end,
-- })
-- vim.schedule(function()
require("custom.mappings")
-- end)
if vim.g.neovide then
vim.o.guifont = "FiraCode Nerd Font:h13"
vim.g.neovide_transparency = 0.85
-- vim.g.transparency = 0.7
vim.g.neovide_theme = "auto"
vim.g.neovide_refresh_rate = 144
vim.g.neovide_text_gamma = 0.0
vim.g.neovide_text_contrast = 0.5
vim.g.neovide_scale_factor = 1.0
end
local move_config = require("nvim-treesitter.parsers").get_parser_configs()
move_config.move = {
install_info = {
url = "https://github.com/tzakian/tree-sitter-move",
files = { "src/parser.c" },
branch = "main",
},
filetype = "move",
used_by = { "move" },
}
-- if vim.g.rustaceanvim then
-- local mason_registry = require("mason-registry")
-- local codelldb = mason_registry.get_package("codelldb")
-- local extension_path = codelldb:get_install_path() .. "/extension/"
-- local codelldb_path = extension_path .. "adapter/codelldb"
-- local liblldb_path = extension_path .. "lldb/lib/liblldb.dylib"
-- local cfg = require("rustaceanvim.config")
-- vim.g.rustaceanvim = {
-- tools = {},
-- server = {},
-- dap = {
-- adapter = cfg.get_codelldb_adapter(codelldb_path, liblldb_path),
-- },
-- }
-- end