From 1fca774106e7d361ec797dedb10562fa619924bf Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sat, 3 Jun 2023 07:58:27 +0100 Subject: [PATCH] Move some things out of common.lua for better use on non-nix machines --- lua/common.lua | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/lua/common.lua b/lua/common.lua index 178a16d..95b8354 100644 --- a/lua/common.lua +++ b/lua/common.lua @@ -1,7 +1,6 @@ vim.g.mapleader = " " vim.g.maplocalleader = "," vim.opt.termguicolors = true -require "ui.fillchars" -- bootstrap lazy.nvim local lazypath = vim.fn.stdpath "data" .. "/lazy/lazy.nvim" @@ -16,33 +15,8 @@ if not vim.loop.fs_stat(lazypath) then } end vim.opt.rtp:prepend(lazypath) -require("lazy").setup { - spec = "plugins", - install = { colorscheme = { "tokyonight" } }, - ui = { - border = "rounded", - icons = { lazy = " " }, - }, - diff = { cmd = "diffview.nvim" }, - checker = { enabled = true, frequency = 3600 }, - performance = { - rtp = { - disabled_plugins = { - "gzip", - "matchit", - "matchparen", - "netrwPlugin", - "tarPlugin", - "tohtml", - "tutor", - "zipPlugin", - }, - }, - }, -} -- Set vim options -vim.cmd [[colorscheme tokyonight]] vim.opt.shiftwidth = 4 vim.opt.expandtab = true vim.opt.number = true @@ -53,16 +27,6 @@ vim.opt.splitbelow = true vim.opt.splitright = true vim.opt.foldlevelstart = 99 --- Global -vim.g.loaded_perl_provider = 0 - -- Common keymaps vim.keymap.set("i", "jk", "") vim.keymap.set("n", "l", "Lazy") - --- GUI settings -if vim.g.neovide then - require "ui.neovide" -elseif vim.g.vscode then - require "ui.vscode" -end