neovim-confs/init.lua

102 lines
3.0 KiB
Lua
Raw Permalink Normal View History

2023-11-20 15:53:56 +01:00
local config = require("plex.config")
2023-09-06 00:26:45 +02:00
config.ensure_lazy()
2023-11-20 15:53:56 +01:00
if vim.g.started_by_firenvim == true then
vim.o.guifont = "FiraCode Nerd Font:h18"
vim.o.lines = vim.o.lines + 10
vim.o.columns = vim.o.columns + 10
-- Start lazy.nvim plugin manager.
require("lazy").setup(vim.tbl_extend("keep", config.user_lazy_opts(), {
spec = {
{ import = "plex.plugins.core" },
{ import = "plex.plugins.editor" },
{ import = "plex.plugins.extras.browser" },
-- This will load a custom user lua/plugins.lua or lua/plugins/*
config.has_user_plugins() and { import = "plugins" } or nil,
},
concurrency = vim.loop.available_parallelism() * 2,
defaults = { lazy = true, version = false },
dev = { path = config.path_join(vim.fn.stdpath("config"), "dev") },
install = { missing = true, colorscheme = {} },
checker = { enabled = true, notify = false },
change_detection = { notify = false },
ui = { border = "rounded" },
diff = { cmd = "terminal_git" },
performance = {
rtp = {
disabled_plugins = {
"gzip",
"vimballPlugin",
"matchit",
"noice.nvim",
"nvim-notify",
"2html_plugin",
"tarPlugin",
"bufferline.nvim",
"tutor",
"zipPlugin",
},
},
},
}))
config.setup()
2023-09-06 00:26:45 +02:00
2023-11-20 15:53:56 +01:00
vim.keymap.set("n", "<C-DOWN>", function()
vim.o.lines = vim.o.lines + 1
end, { expr = true, desc = "Make Display bigger" })
vim.keymap.set("n", "<C-UP>", function()
vim.o.lines = vim.o.lines - 1
end, { expr = true, desc = "Make Display smaller" })
else
vim.o.laststatus = 2
vim.o.showtabline = 2
2023-09-06 00:26:45 +02:00
2023-11-20 15:53:56 +01:00
-- Start lazy.nvim plugin manager.
require("lazy").setup(vim.tbl_extend("keep", config.user_lazy_opts(), {
spec = {
{ import = "plex.plugins" },
{ import = "plex.plugins.extras.coding" },
{ import = "plex.plugins.extras.ui" },
{ import = "plex.plugins.extras.treesitter" },
{ import = "plex.plugins.extras.formatting" },
2023-11-26 14:16:30 +01:00
{ import = "plex.plugins.extras.browser" },
2023-11-20 15:53:56 +01:00
{ import = "plex.plugins.extras.editor" },
{ import = "plex.plugins.extras.org" },
{ import = "plex.plugins.extras.lang.go" },
{ import = "plex.plugins.extras.lang.cpp" }, -- also does C and rust
{ import = "plex.plugins.extras.lang.json" },
{ import = "plex.plugins.extras.lang.polyglot" },
{ import = "plex.plugins.extras.lang.python" },
{ import = "plex.plugins.extras.lang.yaml" },
-- This will load a custom user lua/plugins.lua or lua/plugins/*
config.has_user_plugins() and { import = "plugins" } or nil,
},
concurrency = vim.loop.available_parallelism() * 2,
defaults = { lazy = true, version = false },
dev = { path = config.path_join(vim.fn.stdpath("config"), "dev") },
install = { missing = true, colorscheme = {} },
checker = { enabled = true, notify = false },
change_detection = { notify = false },
ui = { border = "rounded" },
diff = { cmd = "terminal_git" },
performance = {
rtp = {
disabled_plugins = {
"gzip",
"vimballPlugin",
"matchit",
"matchparen",
"2html_plugin",
"tarPlugin",
"tutor",
"zipPlugin",
},
2023-09-06 00:26:45 +02:00
},
},
2023-11-20 15:53:56 +01:00
}))
2023-09-06 00:26:45 +02:00
2023-11-20 15:53:56 +01:00
config.setup()
end