some updates

This commit is contained in:
Ian Griffin 2022-11-17 21:40:26 +08:00
parent 2417dcfd1f
commit e3416f0e72
5 changed files with 37 additions and 39 deletions

10
ginit.vim Normal file
View File

@ -0,0 +1,10 @@
""
"" Font Setup
""
Guifont Source\ Code\ Pro:h10
""
"" Colorscheme
""
set background=light
colo github

View File

@ -12,10 +12,14 @@
local fn = vim.fn
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
if fn.empty(fn.glob(install_path)) > 0 then
Packer_bootstrap = fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
Packer_bootstrap = fn.system({
'git', 'clone', '--depth', '1',
'https://github.com/wbthomason/packer.nvim',
install_path
})
end
packer = require 'packer'
local packer = require 'packer'
packer.reset()
packer.init()
local pk_use = packer.use

View File

@ -80,7 +80,12 @@ pk_use 'nanotee/nvim-lsp-basics'
pk_use {
'stevearc/aerial.nvim',
config = function()
require('aerial').setup()
require('aerial').setup({
backends = {'lsp', 'markdown', 'man'},
layout = {
max_width = {25, 0.2}
}
})
end
}
@ -88,7 +93,15 @@ pk_use {
pk_use {
'williamboman/mason.nvim',
config = function()
require('mason').setup()
require('mason').setup {
ui = {
icons = {
package_installed = "i",
package_pending = "p",
package_uninstalled = "u"
}
}
}
end
}
pk_use {
@ -114,7 +127,6 @@ pk_use {
local basics = require('lsp_basics')
basics.make_lsp_commands(client, bufnr)
basics.make_lsp_mappings(client, bufnr)
require('aerial').on_attach(client, bufnr)
end
})
end

View File

@ -59,6 +59,7 @@ vim.g.netrw_chgwin = 1
--
vim.opt.compatible = false
vim.opt.autowrite = true
vim.opt.foldmethod = "marker"
-- auto cd to the current file's location
vim.cmd('autocmd BufEnter * silent! lcd %:p:h')
-- highlighting for other langs in markdown docs

View File

@ -5,44 +5,15 @@ local ct = require 'conftool'
-- Theme
--
vim.cmd('syntax on')
--[[
pk_use {
'ellisonleao/gruvbox.nvim',
'cormacrelf/vim-colors-github',
setup = function()
require('conftool').set({'background', 'dark'})
end,
config = function()
require('conftool').set({'background', "light"})
require('gruvbox').setup({
italic = true,
bold = true,
contrast = "hard"
})
vim.cmd [[colo gruvbox]]
-- end
--}
--]]
pk_use {
'Shatur/neovim-ayu',
config = function()
local ct = require('conftool')
local hr = os.date('*t').hour
--[[
if hr >= 21 then
ct.set({'background', 'dark'})
elseif hr >= 7 then
ct.set({'background', 'light'})
elseif hr >= 0 then
ct.set({'background', 'light'})
end
]]--
ct.set({'background', 'light'})
require('ayu').setup {
mirage = false,
}
vim.cmd [[colorscheme ayu]]
vim.cmd [[colo github]]
end
}
--
-- Indentation
--