From 23b07f56d9574d0ece2b6ac65149d514d014e718 Mon Sep 17 00:00:00 2001 From: Thomas Gideon Date: Sun, 23 Jun 2024 10:33:41 -0400 Subject: [PATCH 1/3] Restore breezy theme - Setting background to dark and disabling colorscheme switch based on filetype seems to have resolved the issues. --- init.lua | 2 +- plug.lua | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 48b635d..ef0a44b 100644 --- a/init.lua +++ b/init.lua @@ -97,7 +97,7 @@ end 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 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 From b23fd9b050bac3b0b4b32c5f80cabe63c2f7c593 Mon Sep 17 00:00:00 2001 From: Thomas Gideon Date: Sun, 23 Jun 2024 10:34:51 -0400 Subject: [PATCH 2/3] Remove option missing from neovim --- init.lua | 4 ---- 1 file changed, 4 deletions(-) diff --git a/init.lua b/init.lua index ef0a44b..346fe0c 100644 --- a/init.lua +++ b/init.lua @@ -88,10 +88,6 @@ 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"}) From 5e5dd9e4d209e59ad22ec532c27e83bd887e30b2 Mon Sep 17 00:00:00 2001 From: Thomas Gideon Date: Sun, 23 Jun 2024 10:35:09 -0400 Subject: [PATCH 3/3] Fix Os detection --- init.lua | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/init.lua b/init.lua index 346fe0c..9ea6bb9 100644 --- a/init.lua +++ b/init.lua @@ -120,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