From 89121239c213327958fa725674cc51beac9a6ec5 Mon Sep 17 00:00:00 2001 From: Thomas Gideon Date: Mon, 10 Jun 2024 10:14:04 -0400 Subject: [PATCH] Remove text and markdown specific colorscheme LSP breaks this because overlays with multiple lines are opened with a filetype of text causing the colorscheme to change unpredictably and sometimes break. Moved wiki/diary specific colorscheme to a project specific config outside of this repo. --- ftplugin/javascript.lua | 2 -- ftplugin/markdown.lua | 2 -- ftplugin/text.lua | 2 -- ftplugin/typescript.lua | 2 -- init.lua | 5 +++-- lsp.vim | 2 +- 6 files changed, 4 insertions(+), 11 deletions(-) diff --git a/ftplugin/javascript.lua b/ftplugin/javascript.lua index 4b02ba9..0c8031d 100644 --- a/ftplugin/javascript.lua +++ b/ftplugin/javascript.lua @@ -1,5 +1,3 @@ vim.cmd('setlocal fdm=indent') vim.cmd('setlocal smartindent') vim.cmd('setlocal list') --- set an alternate colorscheme from coding -vim.cmd('colorscheme breezy') diff --git a/ftplugin/markdown.lua b/ftplugin/markdown.lua index f9f63dd..04786ee 100644 --- a/ftplugin/markdown.lua +++ b/ftplugin/markdown.lua @@ -14,5 +14,3 @@ vim.cmd('setlocal nolist') vim.cmd('setlocal formatoptions-=t') -- turn off line width hint vim.cmd('setlocal colorcolumn=0') --- set an alternate colorscheme from coding -vim.cmd('colorscheme quiet') diff --git a/ftplugin/text.lua b/ftplugin/text.lua index 039327f..dc8a2cd 100644 --- a/ftplugin/text.lua +++ b/ftplugin/text.lua @@ -8,5 +8,3 @@ vim.cmd('setlocal nolist') vim.cmd('setlocal formatoptions-=t') -- turn off line width hint vim.cmd('setlocal colorcolumn=0') --- set an alternate colorscheme from coding -vim.cmd('colorscheme quiet') diff --git a/ftplugin/typescript.lua b/ftplugin/typescript.lua index 1a74504..94b3d25 100644 --- a/ftplugin/typescript.lua +++ b/ftplugin/typescript.lua @@ -9,5 +9,3 @@ vim.opt.softtabstop = indent vim.cmd('setlocal fdm=indent') vim.cmd('setlocal smartindent') vim.cmd('setlocal list') --- set an alternate colorscheme from coding -vim.cmd('colorscheme breezy') diff --git a/init.lua b/init.lua index 1e635f7..92393b4 100644 --- a/init.lua +++ b/init.lua @@ -54,7 +54,8 @@ vim.opt.expandtab = true -- change buffer behaviors to no longer require changes when hiding a buffer vim.opt.hidden = true --- look for vimrc in the current director as well as $MYVIMRC +-- look for vimrc in the current directory as well as $MYVIMRC +-- e.g. place .nvim.lua at the root of a project directory for project specific settings vim.opt.exrc = true -- make looking for local changes secure vim.opt.secure = true @@ -96,7 +97,7 @@ 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.opt.background = "light" +vim.opt.background = "dark" vim.opt.termguicolors = true -- ensure autoread works, to detect file changes outside the editor diff --git a/lsp.vim b/lsp.vim index b9d1df1..c269e14 100644 --- a/lsp.vim +++ b/lsp.vim @@ -69,7 +69,7 @@ cmp.setup({ EOF " Set updatetime for CursorHold -" 300ms of no cursor movement to trigger CursorHold +" ms of no cursor movement to trigger CursorHold set updatetime=750 " Show diagnostic popup on cursor hold autocmd CursorHold * lua vim.diagnostic.open_float()