remove specific hashes, the bug enter hack breaks on mac so diff on OS

This commit is contained in:
RingOfStorms (Joshua Bell) 2023-06-29 11:40:34 -05:00
parent 01eb2153e8
commit 0f97642a48
16 changed files with 27 additions and 78 deletions

View file

@ -1,16 +1,14 @@
function isEmpty()
return vim.api.nvim_buf_get_name(0) == "" or vim.fn.filereadable(vim.api.nvim_buf_get_name(0)) == 0 or vim.fn.line('$') == 1 and vim.fn.col('$') == 1
end
-- #000000
--
--
vim.api.nvim_create_autocmd({ "VimEnter" }, {
callback = function()
if isEmpty() then
require('telescope.builtin').find_files()
end
end
})
--vim.api.nvim_create_autocmd({ "VimEnter" }, {
-- callback = function()
-- if isEmpty() then
-- require('telescope.builtin').find_files()
-- end
-- end
--})
vim.api.nvim_create_autocmd('BufRead', {
pattern = ".env*",
@ -33,9 +31,9 @@ vim.api.nvim_create_autocmd("BufRead", {
end,
})
vim.api.nvim_create_autocmd('BufEnter', {
callback = function ()
local ts_avail, parsers = pcall(require, "nvim-treesitter.parsers")
if ts_avail and parsers.has_parser() then vim.cmd.TSBufEnable "highlight" end
end,
})
--vim.api.nvim_create_autocmd('BufEnter', {
-- callback = function ()
-- local ts_avail, parsers = pcall(require, "nvim-treesitter.parsers")
-- if ts_avail and parsers.has_parser() then vim.cmd.TSBufEnable "highlight" end
-- end,
--})