-- Import core configuration require("core") -- Bootstrap lazy.nvim 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", lazypath }) end vim.opt.rtp:prepend(lazypath) -- Import plugins require("lazy").setup("plugins") -- Set vim.notify vim.notify = require("notify") -- Terminal mappings function _G.set_terminal_keymaps() local opts = { buffer = 0 } local set = vim.keymap.set set("t", "", [[]], opts) set("t", "jk", [[]], opts) set("t", "", [[wincmd h]], opts) set("t", "", [[wincmd j]], opts) set("t", "", [[wincmd k]], opts) set("t", "", [[wincmd l]], opts) set("t", "", [[]], opts) end vim.cmd("autocmd! TermOpen term://*toggleterm#* lua set_terminal_keymaps()")