mirror of
https://github.com/Smaug123/nix-dotfiles
synced 2025-10-12 18:08:40 +00:00
Fix
This commit is contained in:
@@ -143,6 +143,17 @@ function ChangeToCurrentDirectory()
|
||||
vim.cmd(":pwd")
|
||||
end
|
||||
|
||||
local function close_loclist_if_orphaned()
|
||||
local win = vim.fn.expand("<afile>")
|
||||
vim.fn.win_execute(win, "lclose")
|
||||
end
|
||||
|
||||
-- Set up an autocmd using the nvim_create_autocmd API
|
||||
vim.api.nvim_create_autocmd("WinClosed", {
|
||||
pattern = "*",
|
||||
callback = close_loclist_if_orphaned,
|
||||
})
|
||||
|
||||
local status, whichkey = pcall(require, "which-key")
|
||||
if status then
|
||||
local pickers = require("telescope.pickers")
|
||||
|
Reference in New Issue
Block a user