diff --git a/init.lua b/init.lua index 48b635d..9ea6bb9 100644 --- a/init.lua +++ b/init.lua @@ -88,16 +88,12 @@ vim.opt.directory = os.getenv("HOME") .. "/.var/nvim/swp//" -- and undo vim.opt.undofile = true vim.opt.undodir = os.getenv("HOME") .. "/.nvim/undodir" -if not vim.fn.has('macunix') then - -- make pastemode more accessible - vim.opt.pastetoggle = "" -end -- save when moving away 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 desert") +vim.cmd("colorscheme breezy") vim.opt.background = "dark" vim.opt.termguicolors = true @@ -124,15 +120,14 @@ vim.g.guioptions = guiopts vim.opt.mouse = "nv" -if vim.fn.has('macunix') then - vim.opt.gfn = "FiraCode Nerd Font Mono:h16" -else +if vim.loop.os_uname().sysname == 'Linux' then vim.opt.gfn = "FiraCode Nerd Font Mono:h12" + require('nvim-projectconfig').setup({autocmd=true}) +else + vim.opt.gfn = "FiraCode Nerd Font Mono:h16" + require('nvim-projectconfig').setup() end -if not vim.fn.has('macunix') then - require('nvim-projectconfig').setup({autocmd=true}) -end require("trouble").setup { -- your configuration comes here -- or leave it empty to use the default settings diff --git a/plug.lua b/plug.lua index 518c76f..b9334f7 100644 --- a/plug.lua +++ b/plug.lua @@ -11,6 +11,9 @@ vim.call('plug#begin') -- dynamic font resizing(using ctl and arrow keys Plug('tenxsoydev/size-matters.nvim') +-- custom colorscheme +Plug('fneu/breezy') + -- informational -- lightweight but sophisticated status line