Move most init.lua configing to lua/config.lua

master
Drake 2 years ago
parent 28f33e8267
commit 914b57cdbb

@ -23,13 +23,6 @@ require('packer').startup(function()
use 'folke/todo-comments.nvim'
use 'dstein64/vim-startuptime'
end)
set.termguicolors = true
set.mouse = 'a'
set.clipboard = 'unnamedplus'
set.pumheight = 5
set.number = true
set.tabstop = 4
set.shiftwidth = 4
require("colorscheme")
require("config")
require("plugins")

@ -1,2 +1,14 @@
-- plugin-independent configuration, such as autocmds
vim.cmd("autocmd InsertLeave * write")
local set = vim.opt
-- Set some stuff up like clipboard and mouse
set.termguicolors = true -- Needed for literally any modern colorscheme
set.mouse = 'a' -- Mouse support
set.clipboard = 'unnamedplus' -- Use X11 clipboard
set.pumheight = 5 -- Uhh whatever the fuck this does
set.number = true -- Show line numbers
set.tabstop = 4 -- Set up tabs
set.shiftwidth = 4 -- See above
-- Autocmds
vim.cmd("autocmd InsertLeave * write") -- Autowrite when leaving insert mode

@ -109,11 +109,6 @@ _G.packer_plugins = {
path = "/home/ruthenic/.local/share/nvim/site/pack/packer/start/nvim-cursorline",
url = "https://github.com/yamatsum/nvim-cursorline"
},
["nvim-gps"] = {
loaded = true,
path = "/home/ruthenic/.local/share/nvim/site/pack/packer/start/nvim-gps",
url = "https://github.com/SmiteshP/nvim-gps"
},
["nvim-lspconfig"] = {
loaded = true,
path = "/home/ruthenic/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",

Loading…
Cancel
Save