chore: laptop use lsp for typst
This commit is contained in:
parent
2bfef6a58d
commit
eea6173b02
8 changed files with 50 additions and 38 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue