Finish port of main config

This commit is contained in:
Thomas Gideon 2022-10-31 10:59:04 -04:00
parent 1bcdea7a37
commit 1d03aca5e8
2 changed files with 13 additions and 15 deletions

View File

@ -1,5 +1,9 @@
local vimrc_git = os.getenv("HOME") .. "/src/vimrc"
-- it is a big fat key, after all
-- N.B. should come before plugins and plugin specific settings
vim.g.mapleader = ' '
vim.cmd("source " .. vimrc_git .. "/plug.vim")
vim.cmd("source " .. vimrc_git .. "/airline.vim")
vim.cmd("source " .. vimrc_git .. "/syntastic.vim")
@ -84,7 +88,7 @@ vim.opt.undodir = os.getenv("HOME") .. "/.nvim/undodir"
vim.opt.pastetoggle = "<F2>"
-- save when moving away
--au FocusLost * :wa
vim.api.nvim_create_autocmd("FocusLost", {pattern = "*", command = "wa"})
-- make sure to set TERM to xterm-256color in terminal program or app
vim.cmd("colorscheme breezy")
@ -93,7 +97,7 @@ vim.opt.termguicolors = true
-- ensure autoread works, to detect file changes outside the editor
vim.opt.autoread = true
-- au CursorHold * checktime
vim.api.nvim_create_autocmd("CursorHold", {pattern = "*", command = "checktime"})
-- for gui, make it easier to tell different instances apart
vim.opt.title = true
@ -101,28 +105,20 @@ vim.opt.title = true
-- keep nvim from resetting font back to default from terminal config
vim.opt.guicursor = nil
local guiopts = vim.opt.guioptions
local guiopts = vim.g.guioptions
if guiopts == nil then
guiopts = ""
end
guiopts = guiopts:gsub("r", "")
guiopts = guiopts:gsub("b", "")
guiopts = guiopts:gsub("T", "")
guiopts = guiopts:gsub("m", "")
vim.opt.guioptions = guiopts
vim.g.guioptions = guiopts
vim.opt.mouse = "nv"
vim.opt.gfn = "FiraCode Nerd Font Mono:h12"
-- from https://stackoverflow.com/a/51424640
-- let s:fontsize = 14
-- function! AdjustFontSize(amount)
-- let s:fontsize = s:fontsize+a:amount
-- :execute --set gfn=FiraCode\\ Nerd\\ Font\\ Mono:h" . s:fontsize
-- endfunction
--
-- noremap <C-Up> :call AdjustFontSize(1)<CR>
-- noremap <C-Down> :call AdjustFontSize(-1)<CR>
-- inoremap <C-Up> <Esc>:call AdjustFontSize(1)<CR>a
-- inoremap <C-Down> <Esc>:call AdjustFontSize(-1)<CR>a
require('nvim-projectconfig').setup({autocmd=true})
require("trouble").setup {

View File

@ -3,6 +3,8 @@ call plug#begin("~/.config/nvim/plugged")
" adds to my existing set up. I try to capture the value, at least to me, each
" plugin adds. I've tried to logically group them, as well, to spot overlap
" and redundancy.
"
Plug 'tenxsoydev/size-matters.nvim'
" informational