Made config vaguely work on Windows
Added dots.bat script for installing and pulling Added clink config for cmd Removed auto-split on start in nvim Added guifont in nvim Added workaround for shellpipe in nvim
This commit is contained in:
@@ -44,6 +44,12 @@ vim.o.completeopt = "preview"
|
||||
vim.o.wildmode = "full"
|
||||
vim.o.cinoptions = "l1,b-s"
|
||||
vim.o.statusline = "%#LineNr# [%n] %#Default# %f%m%r %= %#StatusLineNC# %w[%{&ft == '' ? 'None' : ''}%Y] %#LineNr# Line: %l Column: %c "
|
||||
vim.o.guifont = "Ubuntu Mono:h11"
|
||||
|
||||
if vim.loop.os_uname().sysname == "Windows_NT" then
|
||||
-- Workaround for https://github.com/neovim/neovim/issues/32504
|
||||
vim.o.shellpipe = ">%s 2>&1"
|
||||
end
|
||||
|
||||
vim.opt.errorformat = {
|
||||
"%f:%l:%c: fatal %trror: %m", -- gcc/clang fatal error
|
||||
@@ -239,13 +245,6 @@ local function MakeScratch()
|
||||
vim.api.nvim_buf_set_name(bufnr, "scratch")
|
||||
|
||||
vim.api.nvim_buf_set_text(bufnr, 0, 0, 0, -1, { "-*- Scratch Buffer -*-" })
|
||||
|
||||
-- @Hack: There isn't really any way to get the fullscreen size, 150 greater than the
|
||||
-- half-screen width on all of my devices as we don't want to split in that case
|
||||
if vim.o.columns > 150 then
|
||||
vim.cmd(string.format("vsplit #%d", bufnr))
|
||||
vim.cmd("wincmd p")
|
||||
end
|
||||
end
|
||||
|
||||
local function AlignEq()
|
||||
|
||||
Reference in New Issue
Block a user