chore: laptop use lsp for typst

This commit is contained in:
Fabio Lenherr 2023-05-02 11:05:20 +02:00
parent 2bfef6a58d
commit eea6173b02
8 changed files with 50 additions and 38 deletions

View file

@ -11,6 +11,7 @@
-- end,
-- })
-- nvim-tree is also there in modified buffers so this function filter it out
local modifiedBufs = function(bufs)
local t = 0
for k, v in pairs(bufs) do
@ -25,9 +26,9 @@ vim.api.nvim_create_autocmd("BufEnter", {
nested = true,
callback = function()
if
#vim.api.nvim_list_wins() == 1
and vim.api.nvim_buf_get_name(0):match("NvimTree_") ~= nil
and modifiedBufs(vim.fn.getbufinfo({ bufmodified = 1 })) == 0
#vim.api.nvim_list_wins() == 1
and vim.api.nvim_buf_get_name(0):match("NvimTree_") ~= nil
and modifiedBufs(vim.fn.getbufinfo({ bufmodified = 1 })) == 0
then
vim.cmd("quit")
end