diff --git a/init.lua b/init.lua index 9ea6bb9..48b635d 100644 --- a/init.lua +++ b/init.lua @@ -88,12 +88,16 @@ 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 breezy") +vim.cmd("colorscheme desert") vim.opt.background = "dark" vim.opt.termguicolors = true @@ -120,14 +124,15 @@ vim.g.guioptions = guiopts vim.opt.mouse = "nv" -if vim.loop.os_uname().sysname == 'Linux' then - vim.opt.gfn = "FiraCode Nerd Font Mono:h12" - require('nvim-projectconfig').setup({autocmd=true}) -else +if vim.fn.has('macunix') then vim.opt.gfn = "FiraCode Nerd Font Mono:h16" - require('nvim-projectconfig').setup() +else + vim.opt.gfn = "FiraCode Nerd Font Mono:h12" 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 b9334f7..518c76f 100644 --- a/plug.lua +++ b/plug.lua @@ -11,9 +11,6 @@ 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