2022-04-23 03:41:04 +02:00
|
|
|
require("utils.install-packer")
|
2021-10-11 18:02:04 +02:00
|
|
|
|
2021-08-19 17:04:46 +02:00
|
|
|
local u = require("utils")
|
2022-04-23 03:41:04 +02:00
|
|
|
require("core.plugins")
|
2021-08-19 17:04:46 +02:00
|
|
|
|
2021-08-10 21:50:49 +02:00
|
|
|
local g = vim.g
|
2021-09-06 13:29:42 +02:00
|
|
|
local cmd = vim.cmd
|
2021-08-19 15:57:07 +02:00
|
|
|
|
2021-09-06 13:29:42 +02:00
|
|
|
if u.has_plugin("cmp") then
|
2022-04-23 03:41:04 +02:00
|
|
|
require "impatient"
|
|
|
|
|
|
|
|
require "core.options"
|
|
|
|
require "core.autocommands"
|
|
|
|
require "core.keymappings"
|
|
|
|
|
|
|
|
local packer = require("packer")
|
|
|
|
|
|
|
|
-- Have packer use a popup window
|
|
|
|
packer.init {
|
|
|
|
display = {
|
|
|
|
open_fn = function()
|
|
|
|
return require("packer.util").float { border = "rounded" }
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
require "configs.command-center"
|
|
|
|
require "configs.notify"
|
|
|
|
require "configs.lsp"
|
|
|
|
require "configs.lspinstaller"
|
|
|
|
require "configs.telescope"
|
|
|
|
require "configs.tree"
|
|
|
|
|
|
|
|
-- Enable Theming / Syntax
|
|
|
|
require("nightfox").setup({
|
|
|
|
options = {
|
|
|
|
transparent = true
|
2021-12-18 14:41:37 +01:00
|
|
|
}
|
2022-04-23 03:41:04 +02:00
|
|
|
})
|
|
|
|
cmd("colorscheme nightfox")
|
|
|
|
require "utils.theme-reloader"
|
|
|
|
require "configs.lualine"
|
|
|
|
|
|
|
|
-- Configure Wiki
|
|
|
|
g.wiki_root = "~/Notes"
|
|
|
|
g.wiki_filetypes = { "md" }
|
|
|
|
g.wiki_link_extension = ".md"
|
|
|
|
|
|
|
|
require "overlays"
|
|
|
|
|
|
|
|
-- require "nvim-tmux-navigation".setup {
|
|
|
|
-- keybindings = {
|
|
|
|
-- left = "<C-h>",
|
|
|
|
-- down = "<C-j>",
|
|
|
|
-- up = "<C-k>",
|
|
|
|
-- right = "<C-l>",
|
|
|
|
-- last_active = "<C-\\>",
|
|
|
|
-- next = "<C-Space>"
|
|
|
|
-- }
|
|
|
|
-- }
|
|
|
|
|
|
|
|
require "nvim-autopairs".setup()
|
|
|
|
|
|
|
|
-- Treesitter config
|
|
|
|
require "configs.treesitter"
|
|
|
|
|
|
|
|
-- Autocompletion Setup
|
|
|
|
require "snippets"
|
|
|
|
require "configs.autocomplete"
|
|
|
|
|
|
|
|
-- Setup rest.vim
|
|
|
|
-- require("rest-nvim").setup(
|
|
|
|
-- {
|
|
|
|
-- -- Open request results in a horizontal split
|
|
|
|
-- result_split_horizontal = false,
|
|
|
|
-- -- Skip SSL verification, useful for unknown certificates
|
|
|
|
-- skip_ssl_verification = false,
|
|
|
|
-- -- Highlight request on run
|
|
|
|
-- highlight = {
|
|
|
|
-- enabled = true,
|
|
|
|
-- timeout = 150
|
|
|
|
-- },
|
|
|
|
-- -- Jump to request line on run
|
|
|
|
-- jump_to_request = false
|
|
|
|
-- }
|
|
|
|
-- )
|
|
|
|
|
|
|
|
-- LSP Config
|
|
|
|
-- require "lsp-conf"
|
2021-08-19 17:24:36 +02:00
|
|
|
else
|
2022-04-23 03:41:04 +02:00
|
|
|
vim.cmd [[PackerSync]]
|
|
|
|
vim.cmd [[echo Installed -> Reload]]
|
2021-08-31 21:22:57 +02:00
|
|
|
end
|